Skip to end of banner
Go to start of banner

Logging Sensor

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Overview

The logging sensor allows to capture loggings of the application into the inspectIT ecosystem. This means you can see logging output within your invocation sequences. 

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 using UI configuration interface

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:

## Logging information
######################
$include common/logging-log4j.cfg

Configuring the logging level of captured messages

Configuration using UI configuration interface

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.

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 ( INSPECTIT-1971 - Getting issue details... STATUS ). Additional technologies are integrated in new tickets (if you need another technology, please let us know or Vote for an existing technology):

The logging information is right now only available within Invocation Sequences but not as an own view. With  INSPECTIT-2005 - Getting issue details... STATUS  a new aggregation component will be provided.

 

 

 

  • No labels