Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 577 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 577 Bytes

logging-java

Extensions for java.util.logging.Logger including annotation based configuration.

You can simply configure the Logger like this:

@Inject
@LoggerConfig(level=LogLevel.INFO)
private Logger logger;

or for a more complex configuration:

@Inject
@LoggerConfig(level=LogLevel.INFO, handler=java.util.logging.ConsoleHandler.class, filter=MyFilter.class, resource=@Resource(baseName="myresourcebundlename", locale="de-DE"))
private Logger logger;