How Logging Works

These are the following types of logging for every component:

  • Local Logging: This refers to writing log output to a local log file for every component.
  • Central Logging: This refers to publishing log messages from individual components to a central location where logs are collated and logged to a central log file.

The individual components publish log messages to a central queue and then the central log server picks up the log messages from this queue.

The advantage of having a central logging framework is that different individual components can log the data in an agreeable, common format and in a common location, which makes it easy to correlate the log records. This also helps you analyze the records more easily and effectively.

The logging can be effective in the following ways:

  • Standardizes the contents of a log message for logging data across all the components.
  • Provides with an ability to collect the log messages in a central location in addition to being available on an individual engine.
  • Empowers the correlation of different log messages coming across from various components.
  • Enables filtering of messages for effective analysis of the logs.
Central Logging