Skip to content

Remove "$" character from LazyLogging #218

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
ghost opened this issue May 18, 2020 · 0 comments
Open

Remove "$" character from LazyLogging #218

ghost opened this issue May 18, 2020 · 0 comments

Comments

@ghost
Copy link

ghost 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.

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

No branches or pull requests

0 participants