Metadata-Version: 2.4
Name: chars-betterlogs
Version: 3.2.5
Summary: A project started to fix a problem I was having with the default python logging library
Project-URL: Homepage, https://github.com/CharGoldenYT/betterLogs
Project-URL: Issues, https://github.com/CharGoldenYT/betterLogs/issues
Author: CharGoldenYT
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# Char's Better Python Logger

A project started to fix a problem I was having with the default python logging library

## USAGE

Simply install it with `pip install betterlogs` and add it to your code with:
```python
from logs import Logging
```

then make a variable:
```python
#                         The Filename         String to add before the log        Whether to print the log (Defaults to True)
logger:Logging = Logging('filename.log', 'This gets added before the log starts!', False)
```

Tada you now have a callable logger!

### Example Script
```python
from logs import Logging
from datetime import datetime

logger:Logging = Logging('log_' + str(datetime.today().strftime('%d_%m_%Y-%H_%M_%S')) + '.log')

logging.log_info('yipee!')
logging.close() # Don't forget to end the log file before the script ends!
```