Skip to content

Loggers

Classes

LoggerFile

LoggerFile(filepath: Strpath, alias: str | None = None)

Logger

Allows logging into files.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerFileDescriptor

LoggerFileDescriptor(fd: int, alias: str | None = None)

Logger

Allows logging using file descriptor.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerMongo

1
2
3
4
5
6
LoggerMongo(
    host: str | None = None, 
    collection: str | None = None, 
    node: str | None = None, 
    alias: str | None = None
)

Logger

Allows logging into Mongo DB.

Note

Consider using dedicate_thread param.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerRedis

1
2
3
4
5
6
LoggerRedis(
    host: str | None = None, 
    command: str | None = None, 
    prefix: str | None = None, 
    alias: str | None = None
)

Logger

Allows logging into Redis.

Note

Consider using dedicate_thread param.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerRsyslog

1
2
3
4
5
6
7
8
LoggerRsyslog(
    app_name: str | None = None, 
    host: str | None = None, 
    facility: str | None = None, 
    split: bool | None = None, 
    packet_size: int | None = None, 
    alias: str | None = None
)

LoggerSyslog

Allows logging into Unix standard syslog or a remote syslog.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerSocket

LoggerSocket(addr_or_path: Strpath, alias: str | None = None)

Logger

Allows logging into UNIX and UDP sockets.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerStdIO

LoggerStdIO(alias: str | None = None)

Logger

Allows logging stdio.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerSyslog

1
2
3
4
5
LoggerSyslog(
    app_name: str | None = None, 
    facility: str | None = None, 
    alias: str | None = None
)

Logger

Allows logging into Unix standard syslog.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.


LoggerZeroMq

LoggerZeroMq(connection_str: str, alias: str | None = None)

Logger

Allows logging into ZeroMQ sockets.


name_separator

.name_separator: str = ':'

Separator to add after name portion.


name_separator_strip

.name_separator_strip: bool = False

Strip leading and trailing name separator from the result.


opt_key

.opt_key: str | None = None

Allows swapping default option key with custom value.