public final class LoggingProfileContextSelector extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String loggingProfile)
Checks to see if the logging profile has a log context associated with it.
|
org.jboss.logmanager.LogContext |
get(String loggingProfile)
Returns the log context associated with the logging profile or
null if the logging profile does not have
an associated log context. |
static LoggingProfileContextSelector |
getInstance() |
protected org.jboss.logmanager.LogContext |
getOrCreate(String loggingProfile)
Get or create the log context based on the logging profile.
|
org.jboss.logmanager.LogContext |
remove(String loggingProfile)
Removes the associated log context from the logging profile.
|
public static LoggingProfileContextSelector getInstance()
protected org.jboss.logmanager.LogContext getOrCreate(String loggingProfile)
loggingProfile - the logging profile to get or create the log context forpublic org.jboss.logmanager.LogContext get(String loggingProfile)
null if the logging profile does not have
an associated log context.loggingProfile - the logging profile associated with the log contextnull if the logging profile is not associated with a log contextpublic boolean exists(String loggingProfile)
loggingProfile - the logging profile to checktrue if the logging profile has an associated log context, otherwise falsepublic org.jboss.logmanager.LogContext remove(String loggingProfile)
loggingProfile - the logging profile associated with the log contextnull if there was no log context associatedCopyright © 2014 JBoss by Red Hat. All rights reserved.