Skip to main content

Generic logger

Project description

Module LogP

Set up a logging-environment for daemons or console-programs

Functions

SetupLogging(AppName: str, Verbose: int = 0, NoDaemon: bool = True, StdErr: bool = False, LogFile: str = '', Quiet: bool = False, ProcInfo: bool = False, LevelInfo: bool = True, LevelType: int = 2, MultiProc: bool = False, MultiThread: bool = False, StackOnDebug: str = 'NONE', StackDepth: int = 5, NoReset: bool = False) : Erzeugt eine definierte Log-Umgebung

Args:
    AppName (str): Name of application
    Verbose (int, optional): Detail of logging. Defaults to 0.
    NoDaemon (bool, optional): Is this an terminal-task. Defaults to True.
    StdErr (bool, optional): Log to StdErr. Defaults to False.
    LogFile (str, optional): Log to a Log-file. Defaults to ''.
    Quiet (bool, optional): Output only errors. Defaults to False.
    ProcInfo (bool, optional): Show process and thread. Defaults to False.
    LevelType (int, optional): Format of LevelInfo. 0=None, 1=Number, 2=Name, 3=Both. Defaults to 2.
    MultiProc (bool, optional): Show process-names. Defaults to False.
    MultiThread (bool, optional): Show thread-names. Defaults to False.
    StackOnDebug (str, optional): Log-level below or equal a stacktrace is included. Defaults to -1 => Disabled.
    StackDepth (int, optional): Maximum number of stack-lines to display. Defaults to 5.
    NoReset (bool, optional): Do not reset logger on init. Defaults to False.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pcs_log-0.1.1.tar.gz (27.3 kB view hashes)

Uploaded Source

Built Distribution

pcs_log-0.1.1-py3-none-any.whl (32.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page