.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: logger .. class:: alert alert-info pull-top .. contents:: *Module:* `logger.py `_ API ======================================================================= No description. *Imports:* ------------ - `logging `_ - `sys `_ - `ninja_ide.resources `_ *Global Attributes:* ---------------------- - `LOG_FORMAT [at ln:8] `_ - `NOLOG [at ln:7] `_ - `NinjaLogger [at ln:73] `_ - `TIME_FORMAT [at ln:9] `_ ---- *Class:* `Logger(object) `_ --------------------------------------------------------------------------------------------------------- .. code:: python class Logger(object): | General logger *Attributes* ~~~~~~~~~~~~~~ - `_default_level [at ln:41] `_ - `_handler [at ln:54] `_ - `_loggers [at ln:18] `_ *Function:* `__call__(modname) [at ln:24] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __call__(modname): No description. ---- *Function:* `__init__() [at ln:17] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(): No description. ---- *Function:* `add_handler(hfile, mode, log_format, time_format, stream=None) [at ln:45] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_handler(hfile, mode, log_format, time_format, stream=None): No description. ---- *Function:* `argparse(log_level, log_file) [at ln:56] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def argparse(log_level, log_file): No description. ---- *Function:* `dissable() [at ln:36] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def dissable(): No description. ---- *Function:* `setLevel(level) [at ln:40] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def setLevel(level): No description.