The Sensible Logging Configuration is a software tool designed to intelligently control and optimize logging activities. It helps users effectively manage and filter log data to achieve maximum system performance without compromising on security and compliance.
1. Simply import Sensible into your application using this code:
```
import sensible
```
2. Then import the Sensible logger:
```
from sensible.loginit import logger
```
3. Create your logger object with a name, for example:
```
log = logger("MyApp")
```
4. Finally, log your message with the log.info() method:
```
log.info("stuff")
```
This will output something like this to your logs:
```
2009-08-04 23:56:22,583 - MyApp - INFO - stuff
```
If you want to print debug messages, then simply set the environmental variable LOGGING_DEBUG to 1, and any log.debug() messages will be printed. Sensible is an excellent tool for people who want a fuss-free and straightforward logging solution for their applications.
Version 0.2: N/A