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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andriibratanin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Patterns are not respected on Import/Export in Rider
1 participant