loggers => _loggers
This commit is contained in:
parent
a9fa15d643
commit
86380766ac
1 changed files with 6 additions and 6 deletions
|
@ -17,25 +17,25 @@ from sshare.plugin import Plugin
|
||||||
class Logger:
|
class Logger:
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
if kwargs.get("preload_command_line") == True:
|
if kwargs.get("preload_command_line") == True:
|
||||||
self.loggers = [ Plugin.internal("command_line") ]
|
self._loggers = [ Plugin.internal("command_line") ]
|
||||||
else:
|
else:
|
||||||
self.loggers = []
|
self._loggers = []
|
||||||
self.add(*args)
|
self.add(*args)
|
||||||
|
|
||||||
def add(self, *args, **kwargs):
|
def add(self, *args, **kwargs):
|
||||||
for logger in args:
|
for logger in args:
|
||||||
self.loggers.append()
|
self._loggers.append()
|
||||||
|
|
||||||
def info(self, message):
|
def info(self, message):
|
||||||
for logger in self.loggers:
|
for logger in self._loggers:
|
||||||
logger.info(message)
|
logger.info(message)
|
||||||
|
|
||||||
def warn(self, message):
|
def warn(self, message):
|
||||||
for logger in self.loggers:
|
for logger in self._loggers:
|
||||||
logger.warn(message)
|
logger.warn(message)
|
||||||
|
|
||||||
def error(self, message):
|
def error(self, message):
|
||||||
for logger in self.loggers:
|
for logger in self._loggers:
|
||||||
logger.error(message)
|
logger.error(message)
|
||||||
|
|
||||||
def fatal(self, message, error_code=1):
|
def fatal(self, message, error_code=1):
|
||||||
|
|
Loading…
Reference in a new issue