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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for multiprocessing_log_manager-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed3acbdd062eae5092fd0fe512942bc5a8dc5f03996cf4d2f317620a399e25ba |
|
MD5 | 7f854db7f6e8cb67bf329fb50d94ddfa |
|
BLAKE2b-256 | 56a60cdfb88acdad4cb59deeabec66c3b3807ff4d7a3ea8d071c0aec80770af4 |