bec_lib.file_utils.LogWriter#

class LogWriter(service_config: dict)[source]#

Bases: object

Log writer class

Initialize the log writer class.

Parameters:

service_config (dict) – Log writer service config. Must at least contain a base_path.

Methods

create_directory

Create the log directory.

Attributes

directory

Get the log directory.

create_directory(fname: str | None = None) None[source]#

Create the log directory.

property directory: str#

Get the log directory.

Returns:

String representation of log directory

Return type:

str