public final class OSI extends Object
OSI enable OSI logging for simple cases.| Modifier and Type | Class and Description |
|---|---|
static class |
OSI.SystemProperty
SystemProperty defines system properties used by OSI. |
| Constructor and Description |
|---|
OSI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
enable()
Enable OSI logging using the default configuration resource, "osi-logback.xml" as found on
the class path, and the default application name.
|
static void |
enable(boolean showDetail)
Enable OSI logging using the default configuration resource, "osi-logback.xml" as found on
the class path, and the default application name.
|
static void |
enable(String applicationName)
Enable OSI logging using the default configuration resource, "osi-logback.xml" as found on
the class path, and the given applicationName.
|
static void |
enable(String applicationName,
boolean showDetail)
Enable OSI logging using the default configuration resource, "osi-logback.xml" as found on
the class path, and the given applicationName.
|
public OSI()
public static void enable()
OSI system properties.
Must be called before first use of logback.
Do not show status of the logging system.
public static void enable(boolean showDetail)
OSI system properties.
Must be called before first use of logback.
showDetail - if true log the status of the logging system including setup
details.public static void enable(@Nonnull String applicationName)
OSI system properties.
Must be called before first use of logback.
Do not show status of the logging system.
applicationName - the logback context name, never missingpublic static void enable(@Nonnull String applicationName, boolean showDetail)
OSI system properties.
Must be called before first use of logback.
applicationName - the logback context name, never missingshowDetail - if true log the status of the logging system including setup
details.enable(boolean)Copyright © 2013–2015 binkley's BLOG. All rights reserved.