epicsarchiver_mgmt.logging

Sets up logging for the application.

Attributes

HOME_LOG

HOME_LOG_LOCATION

LOG

formatter

timed_rotating_file_handler

root

rich_handler

Functions

log_location(→ pathlib.Path)

Get the location of the log file.

setup_file_handler(→ logging.Handler)

Set up file logging for the command.

Module Contents

epicsarchiver_mgmt.logging.HOME_LOG[source]
epicsarchiver_mgmt.logging.HOME_LOG_LOCATION[source]
epicsarchiver_mgmt.logging.LOG: logging.Logger[source]
epicsarchiver_mgmt.logging.log_location(command_path: str) pathlib.Path[source]

Get the location of the log file.

Parameters:

command_path (str) – The full path of the command.

Returns:

The location of the log file.

Return type:

Path

epicsarchiver_mgmt.logging.setup_file_handler(command_path: str) logging.Handler[source]

Set up file logging for the command.

Parameters:

command_path (str) – The full path of the command.

Returns:

The file handler for the command.

Return type:

logging.Handler

epicsarchiver_mgmt.logging.formatter[source]
epicsarchiver_mgmt.logging.timed_rotating_file_handler[source]
epicsarchiver_mgmt.logging.root[source]
epicsarchiver_mgmt.logging.rich_handler[source]