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 internallogger event(s) #3350

Closed
304NotModified opened this issue May 1, 2019 · 2 comments
Closed

Add internallogger event(s) #3350

304NotModified opened this issue May 1, 2019 · 2 comments
Labels
Milestone

Comments

@304NotModified
Copy link
Member

304NotModified commented May 1, 2019

Easier to subscribe than InternalLogger.LogWriter

@snakefoot
Copy link
Contributor

snakefoot commented May 1, 2019

Would make sense to have a delegate. Maybe with these parameters:

Logger(Type contextType, string contextInfo, LogLevel level, string message, object[] parameters)

  • Type contextType would be Target.GetType().
  • string contextInfo could be File(Name=myfile)

This would allow one to setup a listener for all errors from DatabaseTarget, by filtering on the contextType.

Maybe need some special logic so a Layout that belongs to a certain target is able to signal that it comes from a certain contextType / contextInfo.

@snakefoot
Copy link
Contributor

Resolved with #3796

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

No branches or pull requests

2 participants