Service Logging
Valid for: enaio version 8.50 SP1
The log level for each service is configured in enaio services-admin via the Logging drop-down menu.
The packages of the service will be shown with the current log levels.
Changes are accepted immediately, but after a service has been restarted at standard log levels (see below) they are reset.
The log file is opened via the 'argus' service.
Settings for the log file
Settings for the log file can be adjusted in the configuration file servicewatcher-sw.yml, located in the directory \services\service-manager\config\.
logging: | |
file: ./../../logs/services.log | Name and path of the log file |
maxIndex: 3 |
Maximum number of log files When the maximum size is reached, a new log file will be started with the specified name. When the maximum number is reached, the oldest will be deleted. |
maxFileSize: '10MB' | Maximum size of a log file |
Changes will only take effect after enaio service-manager is restarted.
Default log levels
Changes to log levels in enaio services-admin are reset to default log levels after a service restart. Entries in configuration files for services can be used to specify the default log level for the packages.
Syntax: logging.level.<Package>: <Level>
Example:
The 'search' service contains the com.netflix.appinfo.InstanceInfo package with the default log level WARN.
To change the default log level of the package, add the following entry to the search-prod.yml configuration file:
logging.level.com.netflix.appinfo.InstanceInfo: ERROR
Values for log levels: TRACE, DEBUG, INFO, WARN, ERROR
The new default log level becomes active after the service is restarted.
If the service configuration file does not exist, create it in the directory \services\service-manager\config\ with the following name: <Servicename>-prod.yml
© Copyright OPTIMAL SYSTEMS 2020. | Legal and Data Privacy