mirror of
https://github.com/beetbox/beets.git
synced 2026-01-16 05:02:28 +01:00
Add BeetsPlugin._log: per-plugin logger
This commit is contained in:
parent
b8211a3c4c
commit
d38d264b6b
1 changed files with 4 additions and 0 deletions
|
|
@ -61,6 +61,10 @@ class BeetsPlugin(object):
|
|||
if not self.album_template_fields:
|
||||
self.album_template_fields = {}
|
||||
|
||||
logger_name = '{0}.{1}'.format('beets', self.name)
|
||||
self._log = logging.getLogger(logger_name)
|
||||
self._log.setLevel(logging.WARNING)
|
||||
|
||||
def commands(self):
|
||||
"""Should return a list of beets.ui.Subcommand objects for
|
||||
commands that should be added to beets' CLI.
|
||||
|
|
|
|||
Loading…
Reference in a new issue