Changeset f3b78e8 in ammosreader
- Timestamp:
- 05/21/23 08:00:18 (2 years ago)
- Branches:
- AmmosSource, guix
- Children:
- d2736bb
- Parents:
- 7752d1f
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
README.md
r7752d1f rf3b78e8 56 56 ``` 57 57 58 ## Log-File 59 58 60 The name of the logfile is ammos.log The logger uses the directory 59 61 stored in the AMMOS_LOG_DIR environment variable. If this variable is 60 not set, /tmp is used as default. If the logfile is not writable, the 61 standard logger config is used and the logs go directly to console 62 (tty). (see ammos_logging.conf file in this repository) 62 not set, /tmp is used as default. This might change to *var/log* in 63 future versions running under GUIX system. If the logfile is not 64 writable, the standard logger config is used and the logs go directly to 65 console (tty). (see ammos_logging.conf file in this repository) 66 67 ## Log-Level 68 69 You can change the log-Level by setting the environment variable 70 AMMOS_LOG_LEVEL. To turn off logging completely set the level to 71 'CRITICAL' 72 73 ``` shell 74 export AMMOS_LOG_LEVEL=CRITICAL 75 ``` 76 77 If the environment variable does not exist, the logging level from 78 ammos_logging.conf is used. -
ammosreader/__init__.py
r7752d1f rf3b78e8 22 22 23 23 logger = logging.getLogger(__name__) 24 25 logger.setLevel = os.environ.get('AMMOS_LOG_LEVEL', logger.getEffectiveLevel()) -
org/README.org
r7752d1f rf3b78e8 54 54 #+END_SRC 55 55 56 ** Log-File 57 56 58 The name of the logfile is ammos.log 57 59 The logger uses the directory stored in the AMMOS_LOG_DIR environment variable. 58 If this variable is not set, /tmp is used as default. 60 If this variable is not set, /tmp is used as default. This might change to /var/log/ 61 in future versions running under GUIX system. 59 62 If the logfile is not writable, the standard logger config is used and 60 63 the logs go directly to console (tty). 61 64 (see ammos_logging.conf file in this repository) 65 66 ** Log-Level 67 68 You can change the log-Level by setting the environment variable AMMOS_LOG_LEVEL. 69 To turn off logging completely set the level to 'CRITICAL' 70 71 #+BEGIN_SRC shell 72 export AMMOS_LOG_LEVEL=CRITICAL 73 #+END_SRC 74 75 If the environment variable does not exist, the logging level from ammos_logging.conf is used.
Note:
See TracChangeset
for help on using the changeset viewer.