Metadata-Version: 2.1
Name: lis-simplelogger
Version: 0.1.2
Summary: Simple Logger for LIS.
Home-page: https://github.com/timothyjchun/lis-simplelogger
Author: Timothy Chun
Author-email: timchun0212@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# lis-simplelogger

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

### Use Example

```python
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')
```
