FireSTARR
Loading...
Searching...
No Matches
log Namespace Reference

Classes

class  ArcpyHandler
 

Functions

 add_handler (handler, level=DEFAULT_LEVEL, log_format=LOG_FORMATTER_DEFAULT, logger=getLogger(LOGGER_NAME))
 
 add_log_file (file_log, *args, **kwargs)
 
 add_log_rotating (file_log, when="d", interval=1, *args, **kwargs)
 
 removeHandlers ()
 
 addHandler ()
 

Variables

 DEFAULT_LEVEL = INFO
 
str DEFAULT_FORMAT = "%(asctime)s - %(levelname)8s - [%(filename)s:%(lineno)d] - %(message)s"
 
str LOGGER_NAME = "firestarr"
 
 logging = getLogger(LOGGER_NAME)
 
 DEBUG
 
 INFO
 
 WARN
 
 WARNING
 
 ERROR
 
 FATAL
 
 getLogger
 
 LOG_DEFAULT = StreamHandler(None)
 
 LOG_FORMATTER_DEFAULT = Formatter(DEFAULT_FORMAT)
 
 logger = logging.getLogger()
 default logger
 
 formatter
 formatter to use for log messages
 
str LOG_LEVEL = "DEBUG"
 

Detailed Description

Provides a way of overriding the logging method depending on whether we're in ArcMap or not

Function Documentation

◆ addHandler()

log.addHandler ( )
Check if running in ArcMap and override handler so it just prints if we are
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeHandlers()

log.removeHandlers ( )
Remove all current logging handlers

Variable Documentation

◆ formatter

log.formatter
Initial value:
1= logging.Formatter(
2 "%(asctime)s - %(levelname)s - [%(filename)s:%(lineno)d] - %(message)s"
3)

formatter to use for log messages