python-network
Python module for easy networking
Loading...
Searching...
No Matches

◆ log()

network.log ( * message,
filename = None,
line = None,
funcname = None,
depth = 0 )

Log a message.

Write a message to log (default standard error, can be changed with set_log_output()). A timestamp is added before the message and a newline is added to it.

Parameters
messageThe message to log. Multiple arguments are logged on separate lines. Newlines in arguments cause the message to be split, so they should not contain a closing newline.
filenameOverride filename to report.
lineOverride line number to report.
funcnameOverride function name to report.
depthHow deep to enter into the call stack for function info.
Returns
None.

Definition at line 102 of file network.py.

Here is the caller graph for this function: