For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Logging overrides
We can change the log levels by either adding a code override manually or by injecting code using a given script file.
Add a code override manually to change the log level must be done when you are first preparing the image. You must add the new logging configuration to the package_root/mfpf-[analytics|server]/usr/config folder as a separate configuration snippet, which gets copied to the configDropins/overrides folder on the Liberty server.
Injecting code using a given script file to change the log level can be accomplished by using certain command-line arguments when running any of the start*.sh script files provided in the V8.0.0 package (startserver.sh, startanalytics.sh, startservergroup.sh, startanalyticsgroup.sh). The following optional command-line arguments are applicable:
- [-tr|--trace] trace_specification
- [-ml|--maxlog] maximum_number_of_log_files
- [-ms|--maxlogsize] maximum_size_of_log_files
Parent topic: Log and trace collection