@Retention(value=RUNTIME) @Target(value=FIELD) public @interface NamedLogger
Logger
, this annotation can be used to specify a
name. If this annotation is used but no value is given, the root logger will
be provided.
Example usage:
// Gets root logger @Inject @NamedLogger Logger logger; // Gets logger with name 'LoggerName' @Inject @NamedLogger("LoggerName") Logger logger;
public abstract String value
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.