Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(formatters): Add FLATFormatter to Format Log Records as Flat Line Key-Value Pairs #101

Merged

Conversation

MEHRSHAD-MIRSHEKARY
Copy link
Collaborator

Key Features:

  • Formats log fields as key-value pairs, e.g., asctime='2024-10-04' level='INFO' message='Log message here'.
  • Ignores fields with empty or None values.
  • Adds exception information to the log string if present in the log record.
  • Inherits specifier extraction and handling from BaseStructuredFormatter.

This formatter is ideal for use cases that require concise, human-readable logs without structured formats such as JSON or XML.

Closes #98

…ine Key-Value Pairs

#### Key Features:
- Formats log fields as key-value pairs, e.g., �sctime='2024-10-04' level='INFO' message='Log message here'.
- Ignores fields with empty or None values.
- Adds exception information to the log string if present in the log record.
- Inherits specifier extraction and handling from BaseStructuredFormatter.

This formatter is ideal for use cases that require concise, human-readable logs without structured formats such as JSON or XML.

Closes Lazarus-org#98
Copy link
Collaborator

@ARYAN-NIKNEZHAD ARYAN-NIKNEZHAD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 👌

@ARYAN-NIKNEZHAD ARYAN-NIKNEZHAD merged commit aa38f42 into Lazarus-org:main Oct 4, 2024
5 checks passed
@MEHRSHAD-MIRSHEKARY MEHRSHAD-MIRSHEKARY deleted the feat/flat-formatter branch October 11, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for Flat Log Format
2 participants