Youtrack Logger Backend v0.1.13 Youtrack.Formatter View Source

Formatting a given data set into string by defined formatting rules.

Link to this section Summary

Functions

By given input data, this functions creates a description string, applying the configured summary format

By given input data, this functions creates a summary string, applying the configured summary format

Link to this section Functions

Link to this function generate_description(level, message, timestamp, metadata, map) View Source
generate_description(atom(), binary(), tuple(), list(), map()) :: binary()

By given input data, this functions creates a description string, applying the configured summary format.

Parameters:

  • level
  • message
  • timestamp
  • metadata
  • map - containing summary format and metadata keys

Returns:

  • a string that contains a formatted summary
Link to this function generate_summary(level, message, timestamp, metadata, map) View Source
generate_summary(atom(), binary(), tuple(), list(), map()) :: binary()

By given input data, this functions creates a summary string, applying the configured summary format.

Parameters:

  • level
  • message
  • timestamp
  • metadata
  • map - containing summary format and metadata keys

Returns:

  • a string that contains a formatted summary