org.jboss.errai.common.client.api.annotations
Annotation Type NamedLogger
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface NamedLogger
When injecting a 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;
- Author:
- mbarkley
value
public abstract String value
- Default:
- "ROOT"
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.