Skip to content

Is it possible to bind a Logger as a constant? #1866

@jafarre-bi

Description

@jafarre-bi

Hello,
In the advice I'm writing, I need an instance of java.util.logging.Logger and I don't want to request it by name every time.
As a first approach, I have added a static field, initialised at the end of static initialisation, and I'm passing it with @fieldvalue.
This implies I need to rebase the class rather than decorate it.
Is it possible to bind the logger instance as a constant instead, in the same way I would, for instance, with a String?
Thanks!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions