39 lines
2.5 KiB
HTML
39 lines
2.5 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<html><head><title>Python: class Logger</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
</head><body bgcolor="#f0f0f8">
|
||
|
<p>
|
||
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||
|
<tr bgcolor="#ffc8d8">
|
||
|
<td colspan=3 valign=bottom> <br>
|
||
|
<font color="#000000" face="helvetica, arial"><strong>core.utils.Logger</strong> = <a name="core.utils.Logger">class Logger</a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
|
||
|
|
||
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||
|
<td width="100%">Methods defined here:<br>
|
||
|
<dl><dt><a name="Logger-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
|
||
|
|
||
|
<dl><dt><a name="Logger-get_logger"><strong>get_logger</strong></a>(self, loggerName='NO_LOGGER_NAME_PASSED', createFile=True)</dt><dd><tt>Create a new logging object and return it.<br>
|
||
|
:note:<br>
|
||
|
NOSET # Don't know the actual log level of this... (defaulting or literally none?)<br>
|
||
|
Log Levels (From least to most)<br>
|
||
|
Type Value<br>
|
||
|
CRITICAL 50<br>
|
||
|
ERROR 40<br>
|
||
|
WARNING 30<br>
|
||
|
INFO 20<br>
|
||
|
DEBUG 10<br>
|
||
|
:param loggerName: Sets the name of the logger object. (Used in log lines)<br>
|
||
|
:param createFile: Whether we create a log file or just pump to terminal<br>
|
||
|
<br>
|
||
|
:return: the logging object we created</tt></dd></dl>
|
||
|
|
||
|
<hr>
|
||
|
Data descriptors defined here:<br>
|
||
|
<dl><dt><strong>__dict__</strong></dt>
|
||
|
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
||
|
</dl>
|
||
|
<dl><dt><strong>__weakref__</strong></dt>
|
||
|
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
||
|
</dl>
|
||
|
</td></tr></table>
|
||
|
</body></html>
|