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 details)
File details
Details for the file mv-logger-0.0.7.tar.gz
.
File metadata
- Download URL: mv-logger-0.0.7.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583e03e7860914bca3678497e215639a2b57fc55ab56ef37b2855761ab573932 |
|
MD5 | 8f49d0922a7f5bf5d067edafdc007830 |
|
BLAKE2b-256 | 61272c1abef5f7383ace848f828d88f711899fc10a8aa1830f83a15305b5b8fd |