ssb_utdanning package

Subpackages

ssb_utdanning.config module

The config holds attributes/constants that the user should be allowed to change before running code, that we do not want as parameters to functions.

Attributes: ENVIR (str): The environment the application is running in. SERVICE (str): The service the application is running in. REGION (str): The region the application is running in.

TESTING (bool): Whether the application is running in testing mode. MOCKING (bool): Whether the application is running in mocking mode.

DATETIME_FORMAT (str): The datetime format used in filenames.

PROD_FORMATS_PATH (str): The path to the production formats.

ssb_utdanning.utdanning_logger module

class ColoredFormatter(*args, colors=None, **kwargs)

Bases: Formatter

Colored log formatter.

Parameters:
  • args (Any)

  • colors (dict[str, str] | None)

  • kwargs (Any)

format(record)

Format the specified record as text.

Return type:

str

Parameters:

record (LogRecord)