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

Changed Tag is not used after ActivateOptions #29

Open
AdrianEggenberger opened this issue Jul 20, 2022 · 0 comments
Open

Changed Tag is not used after ActivateOptions #29

AdrianEggenberger opened this issue Jul 20, 2022 · 0 comments

Comments

@AdrianEggenberger
Copy link

Hi

We have a scenario where we would like to change the tag that is used. I can get the logger instance by calling this:
var logglyAppender = (log4net.LogManager.GetRepository().GetAppenders().FirstOrDefault(appender => appender.GetType() == typeof(LogglyAppender)) as LogglyAppender);

I have then access to the properties of the logger and can change the tag(s). My expectation was that after calling ActivateOptions the new tags are used, but the tags that are reported to loggly don't change.

Regards Adrian

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

No branches or pull requests

1 participant