Skip to main content

Simple Logger for LIS.

Project description

lis-simplelogger

Simple Logger for LIS. Simultaneous setup for console logs and file log saves.

Use Example

from lis_simplelogger import LISSimpleLogger

FILEPATH="/my/path"
LIS_SL = LISSimpleLogger (
          log_file=f"{FILEPATH}/file.log",
          logger_name="my_logger"
        )

# this sets up the file and console logger to the specified path
LIS_SL.full_setup()

# file logger independent handling
file_logger = sl.get_file_logger()

file_logger.debug('This is a debug message')
file_logger.info('This is an informational message')
file_logger.warning('This is a warning message')
file_logger.error('This is an error message')
file_logger.critical('This is a critical message')

# console logger independent handling
console_logger = sl.get_console_logger()

console_logger.debug('This is a debug message')
console_logger.info('This is an informational message')
console_logger.warning('This is a warning message')
console_logger.error('This is an error message')
console_logger.critical('This is a critical message')

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

lis-simplelogger-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

lis_simplelogger-0.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file lis-simplelogger-0.1.2.tar.gz.

File metadata

  • Download URL: lis-simplelogger-0.1.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for lis-simplelogger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c4dd146b49403fcc088f564ab1d5eba750de11ee7a20ea2207c2540f827bc2f2
MD5 514809ca20c478e4efe50cf2952bbc26
BLAKE2b-256 e6fadfa28be463de9f4d79aafff0a5da033b0748566a543a74a77fb391131bca

See more details on using hashes here.

File details

Details for the file lis_simplelogger-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lis_simplelogger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a61023a5783e94be43f041aea368c6ebe3fe721189717caa260b48c7ad03e120
MD5 4dc5c5489701fb857224124aad794e0e
BLAKE2b-256 f8f08bc9f4b41a7f635c48132863fe3873450be153b4c5c80d478fce8c9edc7c

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