Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 use the configuration entries within the default inspectit-agent.cfg, which includes concrete logging configurations from the common folder:

...

include the common profile Image Added[Common] Logging for log4j to your environment settings.

Configuring the logging level of captured messages

Configuration basics

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 capturedthe Logging Sensor is available in the Environment configuration.

Realization status

Currently the logging sensor is provided for the log4j framework (

Jira Legacy
serverJIRA (inspectit-performance.atlassian.net)
serverId025b869f-b613-3685-8211-0d54499d8708
keyINSPECTIT-1971
). Additional technologies are integrated in new tickets (if you need another technology, please let us know or Vote for an existing technology):

...