mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-28 11:41:46 +03:00
Add long (but unused) log format
This commit is contained in:
parent
37eaeed55e
commit
23f44c34e8
@ -306,7 +306,7 @@ You can install Glances using ``Puppet``: https://github.com/rverchere/puppet-gl
|
||||
Ansible
|
||||
-------
|
||||
|
||||
A Glances ``Ansible`` role is available: https://github.com/zaxos/glances-ansible-role
|
||||
A Glances ``Ansible`` role is available: https://galaxy.ansible.com/zaxos/glances-ansible-role/
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
@ -27,7 +27,8 @@ import tempfile
|
||||
import logging
|
||||
import logging.config
|
||||
|
||||
LOG_FILENAME = os.path.join(tempfile.gettempdir(), 'glances-{}.log'.format(getpass.getuser()))
|
||||
LOG_FILENAME = os.path.join(tempfile.gettempdir(),
|
||||
'glances-{}.log'.format(getpass.getuser()))
|
||||
|
||||
# Define the logging configuration
|
||||
LOGGING_CFG = {
|
||||
@ -42,7 +43,10 @@ LOGGING_CFG = {
|
||||
"format": "%(asctime)s -- %(levelname)s -- %(message)s"
|
||||
},
|
||||
"short": {
|
||||
"format": "%(levelname)s: %(message)s"
|
||||
"format": "%(levelname)s -- %(message)s"
|
||||
},
|
||||
"long": {
|
||||
"format": "%(asctime)s -- %(levelname)s -- %(message)s (%(funcName)s in %(filename)s)"
|
||||
},
|
||||
"free": {
|
||||
"format": "%(message)s"
|
||||
|
Loading…
Reference in New Issue
Block a user