Module: LogStruct::SemanticLogger
- Defined in:
- lib/log_struct/semantic_logger/setup.rb,
lib/log_struct/semantic_logger/logger.rb,
lib/log_struct/semantic_logger/formatter.rb,
lib/log_struct/semantic_logger/color_formatter.rb,
lib/log_struct/semantic_logger/reopen_after_fork.rb,
lib/log_struct/semantic_logger/concerns/log_methods.rb
Overview
LogStruct writes its lines through SemanticLogger. It replaces Rails.logger and the framework loggers with a SemanticLogger logger whose formatter writes LogStruct's JSON lines. SemanticLogger formats and writes each line on a background thread, so a request or job doesn't wait for the write, and it can write to several appenders (STDOUT, a file, a log service) at once.
Defined Under Namespace
Modules: Concerns, ReopenAfterFork, Setup Classes: ColorFormatter, Formatter, FormatterProxy, Logger