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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pcs_log-0.1.1.tar.gz.

File metadata

  • Download URL: pcs_log-0.1.1.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for pcs_log-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c9070b9306f78076ec84fba43c447d16100f7385663f752d87ffa5803029290
MD5 0a8f01734cbf5c76d5ee21f7d4011a50
BLAKE2b-256 44862d062ca9d721939180bdbe310c50541881447b4469b32162e7e4122351dd

See more details on using hashes here.

File details

Details for the file pcs_log-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pcs_log-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for pcs_log-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 430e0bf16b3b32bdf49e406788338cf379db9fa47113eb5989a5f348e7bc4f36
MD5 6ea53232b71fddd2bf58eda35846423f
BLAKE2b-256 d2b12ce77f9293cac128f42788ca98f2fd3f5602d5e3ce1424730abad65ad85f

See more details on using hashes here.

Supported by

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