...
You can use this feature to add context information about the running transaction or to get detailed information about problems (usually applications do log problems). In addition to that you can jump from a logging output back to the invocation sequence and analyze the complete request as your user executed it.
Configuration
Configuration
...
basics
Please note that the easiest way to get the default configuration is to include the common profile [Common] Logging for log4j to your environment settings.
Configuration using configuration file(s)
Please note that the easiest way to get the default configuration is to use the configuration entries within the default inspectit-agent.cfg, which includes concrete logging configurations from the common folder:
...
.
...
Configuring the logging level of captured messages
Configuration
...
basics
The logging level configuration for the Logging Sensor is available in the Environment configuration.
Configuration using configuration file(s)
The logging level of captured messages can be configured with the method-sensor-type of the logging realization. In this example I show the configuration for log4j (other technologies work similarly).
In [config_root]/common/ you find logging-log4j.cfg. In this file you find the definition of the logging sensor.
Code Block |
---|
method-sensor-type log4jlogger info.novatec.inspectit.agent.sensor.method.logging.Log4JLoggingSensor MIN minlevel=WARN |
Use the minlevel parameter to define the minimum severity level a logging message must have to be captured.
Realization status
Currently the logging sensor is provided for the log4j framework (
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
...