Xqt added a comment.

  The layer parameter is mandatory for `debug()` function.[1]
  
  Usually a global `_logger` variable is used and passed to `debug()` [2][3] 
but I don't see any benefit to have different  logger for debug() (which does 
not mean to have different files) whereas other logging functions like `log()` 
or `output()` could have different logger but all of them uses our default 
`'pywiki'` logger. The log file does not use the logger name. I propose to 
remove the global `_logger` variables and make the layer parameter optional for 
`debug()`.
  
  See also: T85620 <https://phabricator.wikimedia.org/T85620>
  
  [1] 
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html?highlight=debug#pywikibot.debug
  [2] 
https://codesearch.wmcloud.org/pywikibot/?q=debug%5C(&i=nope&files=&excludeFiles=&repos=
  [3] 
https://codesearch.wmcloud.org/pywikibot/?q=_logger&i=nope&files=&excludeFiles=&repos=

TASK DETAIL
  https://phabricator.wikimedia.org/T299309

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, JJMC89, matej_suchanek, 786, Suran38, 
Biggs657, Lalamarie69, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, 
Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, 
joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, 
Bsandipan, Jayprakash12345, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, 
Dvorapa, Altostratus, Avicennasis, Wong128hk, mys_721tx, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to