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

Add Serilog.xml in formatsDirectory #192

Closed
wants to merge 1 commit into from

Conversation

andriibratanin
Copy link
Contributor

A trivial example of log highlighting format for Serilog that matches the default File Sink log message template, like:

2024-08-17 02:46:37.175 +03:00 [WRN] Running in Development environment
2024-08-17 02:46:37.206 +03:00 [INF] MainBackgroundService has started
2024-08-17 02:48:18.774 +03:00 [INF] MainBackgroundService has exited
2024-08-17 02:48:18.775 +03:00 [ERR] Exit code is non-zero!

Note: Manual steps required until the following issue is fixed: #191
Until then, after log format import users have to manually add three additional highlighting patterns:

  • "^\serr\s$" - for errors
  • "^\swrn\s$" - for warnings
  • "^\sinf\s$" - for information messages

Partially resolves:
#43

@smirok
Copy link
Contributor

smirok commented Oct 23, 2024

@andriibratanin Hi! Thanks for your contribution, .xml file with the format was added in formatsDirectory.

#191 will be fixed soon.

@smirok smirok closed this Oct 23, 2024
@smirok smirok added the merged label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Patterns are not respected on Import/Export in Rider
2 participants