mv-logger
Project description
# mv-logger
To install:
```
pip install mv-logger
```
To use in django:
```
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'root': {
'level': 'INFO',
'handlers': ['file'],
'propagate': False,
},
'formatters': {
'logstash': {
'()': 'mv_logger.LogstashFormatter',
},
},
'handlers': {
'file': {
'class': 'logging.FileHandler',
'formatter': 'logstash',
'level': 'INFO',
'filename': '/var/log/app.log,
},
},
}
```
To install:
```
pip install mv-logger
```
To use in django:
```
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'root': {
'level': 'INFO',
'handlers': ['file'],
'propagate': False,
},
'formatters': {
'logstash': {
'()': 'mv_logger.LogstashFormatter',
},
},
'handlers': {
'file': {
'class': 'logging.FileHandler',
'formatter': 'logstash',
'level': 'INFO',
'filename': '/var/log/app.log,
},
},
}
```
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
mv-logger-0.0.7.tar.gz
(1.8 kB
view hashes)