Skip to content

Latest commit

History

History
50 lines (39 loc) 路 1.09 KB

File metadata and controls

50 lines (39 loc) 路 1.09 KB

ConsoleLogger

@Metadata { @TitleHeading(Package) }

A SwiftLog LogHandler implementation for customizable logging to a console.

Overview

ConsoleLogger is a flexible logging backend for console applications, allowing developers to customize log output with various fragments, including timestamps, log levels, and source locations.

Topics

Essentials

  • doc:GettingStarted
  • ConsoleLogger
  • ConsoleLogger/Logging

Logger Fragments

  • LoggerFragment
  • LoggerFragmentBuilder
  • LoggerSpacedFragmentBuilder
  • FragmentOutput
  • IfMaxLevelFragment
  • AndFragment
  • OptionalFragment
  • ArrayFragment
  • LabelFragment
  • LevelFragment
  • LiteralFragment
  • SeparatorFragment
  • SpacedFragment
  • MessageFragment
  • MetadataFragment
  • SourceLocationFragment
  • LoggerSourceFragment
  • TimestampSource
  • SystemTimestampSource
  • TimestampFragment
  • DefaultLoggerFragmentType
  • TimestampDefaultLoggerFragmentType

Miscellaneous

  • LogRecord
  • ConsoleLoggerPrinter
  • DefaultConsoleLoggerPrinter