Skip to content

0.1

Choose a tag to compare

@Tastyep Tastyep released this 24 Aug 12:57
· 37 commits to main since this release

Structured Logging

This first release defines what structlog should be and what its API should look like.

Features

Sinks

  • Console: Write log entries to nvim's console.
  • File: Write log entries to a file.
  • RotatingFile: Write log entries to a rotating file.

Processors

  • Namer: Add the logger name into log entries as 'logger_name'.
  • StackWriter: Read the stack trace and provide additional log entries ["file", "line"].
  • Timestamper: Add a 'timestamp' entry to the log entries.

Formatters

  • Format: Format entries using a string format.
  • FormatColorizer: Format and Colorize log entries.
    The FormatColorizer only works with the Console sink.

Other

  • Global log management structlog's configure(...) method
  • Most of the code base is tested
  • The documentation is generated from code thanks to LDoc