cars.core.cars_logging
cCars logging module: contains cars logging setup logger for main thread and workers
Attributes
Classes
In-process warning counter handler. |
|
ProfilingFilter |
|
Profiling |
|
Profiling |
|
LogSender |
Functions
|
Lock file for safe writing (Windows version) |
|
Reset global warning counting state for a fresh pipeline run. |
|
Get total warning count captured by WarningCounterHandler. |
|
Setup the CARS logging configuration |
|
Add enforced message with INFO level |
|
Add enforced message with PROFILING_LOG level |
|
Wrapper logger function to wrap worker func |
|
Logger function to wrap worker func (with non local method) |
Module Contents
- cars.core.cars_logging.SYS_PLATFORM
- cars.core.cars_logging.IS_WIN
- cars.core.cars_logging.PROGRESS = 21
- cars.core.cars_logging.PROFILING_LOG = 15
- cars.core.cars_logging.profiling_logger
- cars.core.cars_logging._WARNING_COUNTER = 0
- cars.core.cars_logging._WARNING_LOCK
- cars.core.cars_logging.reset_warning_count() None[source]
Reset global warning counting state for a fresh pipeline run.
- cars.core.cars_logging.get_warning_count() int[source]
Get total warning count captured by WarningCounterHandler.
- class cars.core.cars_logging.WarningCounterHandler(level=NOTSET)[source]
Bases:
logging.HandlerIn-process warning counter handler.
- class cars.core.cars_logging.ProfilingFilter(name='')[source]
Bases:
logging.FilterProfilingFilter
- class cars.core.cars_logging.ProfilinglHandler(filename, mode='a', encoding=None, delay=False)[source]
Bases:
logging.FileHandlerProfiling
- sender
- class cars.core.cars_logging.WorkerHandler(filename, mode='a', encoding=None, delay=False)[source]
Bases:
logging.FileHandlerProfiling
- sender
- cars.core.cars_logging.setup_logging(loglevel='PROGRESS', out_dir=None, log_dir=None, pipeline='', in_worker=False, global_log_file=None, use_stdout=True)[source]
Setup the CARS logging configuration
- Parameters:
loglevel – log level default WARNING
use_stdout – whether to add stdout handler (default: True)
- cars.core.cars_logging.add_progress_message(message)[source]
Add enforced message with INFO level to stdout and logging file
- Parameters:
message – logging message
- cars.core.cars_logging.add_profiling_message(message)[source]
Add enforced message with PROFILING_LOG level to stdout and logging file
- Parameters:
message – logging message