An easy way to change the log level in runtime.
Project description
django-logger-panel
An easy way to change the log level in runtime
Installation
pip install django-logger-panel
Features
- List all active loggers .
- Change any logger level in run time.
- Change all logger levels at once.
- Display logger information.
Settings.py
INSTALLED_APPS
Add loggerpanel
to installed apps
INSTALLED_APPS = [
...
'django_logger_panel',
]
LOGGING
Make sure the LOGGING
variable in settings.py
has a logger
named ''
with at least one handler
.
This is the root
logger
configuration and will allow all loggers
with no handler
to inherit it from the root
.
Example:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'console': {
'format': '%(asctime)s %(levelname)-8s %(name)-12s %(message)s',
},
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'console',
},
},
'loggers': {
'': {
'level': 'DEBUG',
'handlers': ['console'],
},
},
}
LOGGER_PANEL_BASE_URL
Optionally, change the default base url /loggers/
by setting the property LOGGER_PANEL_BASE_URL
.
This variable is not required.
LOGGER_PANEL_BASE_URL = "/another-path/"
urls.py
Add the django_logger_panel.urls
to the urlpatterns
.
urlpatterns = [
...
path("", include("django_logger_panel.urls")),
...
]
Screenshots
Logger Panel
Logger Details
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
django-logger-panel-0.1.4.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for django-logger-panel-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227f8a703d92e9e86535cae61873a99561cf01ab8ad65ceaac1cbfa9e452bc19 |
|
MD5 | a3b31f5aea7bc631c065a39e5015ed9d |
|
BLAKE2b-256 | cd4d9496755c86f1e0fb2110ac9daed8bd0285d6a4f392dc8e3b1a092987abab |
Close
Hashes for django_logger_panel-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178b13d0f92500f7bc8fd5f20600b01a82e95a94c2555d73817903a71cd418ff |
|
MD5 | a0ab0317998324128eb33dd0c807e3fe |
|
BLAKE2b-256 | eee74557753452c69786e0e715c75b233ddf76d492edb8578d2f191b371c31be |