netcrawl.wylog package¶
Submodules¶
netcrawl.wylog.logging module¶
Created on Mar 4, 2017
@author: Wyko
-
netcrawl.wylog.logging.
log
(msg, **kwargs)[source]¶ Writes a message to the log.
Parameters: msg (str) – The message to write.
Keyword Arguments: - ip (str) – The IP address of whatever device we are connected to
- proc (str) – The process which caused the log entry, in the form of ‘module.method_name’
- log_path (str) – The filepath of the directory where to save the log file. Uses config.cc.log_path by default
- print_out (bool) – If True, copies the message to console
- v (int) – Verbosity level. Logs with verbosity above the global verbosity level will not be printed out. v= 1: Critical alerts v= 2: Non-critical alerts v= 3: High level info v= 4: Common info v= 5-6: Debug level info
- error (Exception) – An exception object to be included in the log output
Returns: True if write was successful.
Return type: bool