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

Remove "$" character from LazyLogging #218

Open
jss-arch opened this issue May 18, 2020 · 0 comments
Open

Remove "$" character from LazyLogging #218

jss-arch opened this issue May 18, 2020 · 0 comments

Comments

@jss-arch
Copy link

jss-arch commented May 18, 2020

Extending the LazyLogging appends a "$" character to the end of the class name, as shown:

2020-05-18 14:50:33.096 [INFO] from [main] in c.c.xxxxx.logteste.traits.Teste$.testeLog:7 - INFO
2020-05-18 14:50:33.102 [WARN] from [main] in c.c.xxxxx.logteste.traits.Teste$.testeLog:8 - WARNING
2020-05-18 14:50:33.103 [ERROR] from [main] in c.c.xxxxx.logteste.traits.Teste$.testeLog:9 - ERROR

This "Teste" class is actually a simple scala object that I'm using to run some tests on scala-logging.

I didn't check but probably the same happens in StrictLogging.

I could solve this problem by creating my own logger object using the classOf[classnamehere] operator, but this way I couldn't make use of the LazyLogging.

I will try to the analyze the source code when I have free time but the issue is open if other people have any ideas on how to solve this.

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

No branches or pull requests

1 participant