Skip to main content

Multi-process secure logs both in linux and windows

Project description

# how to use this:

logger = LogManager(‘logger_name’).get_and_add_handlers(log_level_int=1, is_add_stream_handler=True, log_path=None, log_filename=None, log_file_size=10,mongo_url=None,formatter_template=2)

logger.debug(‘hello’)

logger.info(‘world’)

### if you want to also write logs to mongodb

connect_url = ‘mongodb://myUserAdmin:8mwTdy1klnxxxx@112.25.53.14:27017/admin’ logger = LogManager(‘helloMongo’).get_logger_and_add_handlers(mongo_url=connect_url)

logger.debug(‘hello’)

logger.info(‘world’)

### and also you can write log information to file

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

multiprocessing_log_manager-0.1.1.tar.gz (16.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for multiprocessing_log_manager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5de9f15537c081ad489eca8f1ab57f3246574e8c8490a6dfc4dabd2ee431d2c
MD5 e7c3bcfce7aa8f253e2f5e6a60b96553
BLAKE2b-256 da9112e7daf33a4ca584f9f9529f6465717f7eccbbe2d076e803f58a55ab1651

See more details on using hashes here.

Provenance

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