You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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>&nbsp;<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>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Logger-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;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&nbsp;a&nbsp;new&nbsp;logging&nbsp;object&nbsp;and&nbsp;return&nbsp;it.<br>
:note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;NOSET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Don't&nbsp;know&nbsp;the&nbsp;actual&nbsp;log&nbsp;level&nbsp;of&nbsp;this...&nbsp;(defaulting&nbsp;or&nbsp;literally&nbsp;none?)<br>
&nbsp;&nbsp;&nbsp;&nbsp;Log&nbsp;Levels&nbsp;(From&nbsp;least&nbsp;to&nbsp;most)<br>
&nbsp;&nbsp;&nbsp;&nbsp;Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Value<br>
&nbsp;&nbsp;&nbsp;&nbsp;CRITICAL&nbsp;&nbsp;&nbsp;50<br>
&nbsp;&nbsp;&nbsp;&nbsp;ERROR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;40<br>
&nbsp;&nbsp;&nbsp;&nbsp;WARNING&nbsp;&nbsp;&nbsp;&nbsp;30<br>
&nbsp;&nbsp;&nbsp;&nbsp;INFO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20<br>
&nbsp;&nbsp;&nbsp;&nbsp;DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10<br>
:param&nbsp;loggerName:&nbsp;Sets&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;logger&nbsp;object.&nbsp;(Used&nbsp;in&nbsp;log&nbsp;lines)<br>
:param&nbsp;createFile:&nbsp;Whether&nbsp;we&nbsp;create&nbsp;a&nbsp;log&nbsp;file&nbsp;or&nbsp;just&nbsp;pump&nbsp;to&nbsp;terminal<br>
&nbsp;<br>
:return:&nbsp;the&nbsp;logging&nbsp;object&nbsp;we&nbsp;created</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>