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

Logging object causes stack overflow #47

Open
rcorfman opened this issue Feb 11, 2021 · 2 comments
Open

Logging object causes stack overflow #47

rcorfman opened this issue Feb 11, 2021 · 2 comments
Labels

Comments

@rcorfman
Copy link

I have a class, MyClass with ToString() overridden. When I do something like:
log.Info("Here is my class object {MyClass}", myClassObject);
I get stack overflow when a SplunkHttpEventCollector logger is active. Everything works as exptected if I use a different type of logger such as File.

@rcorfman
Copy link
Author

I should have mentioned, that to overcome this issue, instead of passing the object, I passed the result of ToString().

log.Info("Here is my class object {MyClass}", myClassObject.ToString());

@AlanBarber
Copy link
Owner

Does this happen with any object or just certain objects?

@AlanBarber AlanBarber added the bug label Feb 20, 2021
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