Skip to content

Remove "$" character from LazyLogging #218

Open
@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions