本文整理汇总了Java中org.slf4j.bridge.SLF4JBridgeHandler.uninstall方法的典型用法代码示例。如果您正苦于以下问题:Java SLF4JBridgeHandler.uninstall方法的具体用法?Java SLF4JBridgeHandler.uninstall怎么用?Java SLF4JBridgeHandler.uninstall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.slf4j.bridge.SLF4JBridgeHandler
的用法示例。
在下文中一共展示了SLF4JBridgeHandler.uninstall方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
/**
* Initialize Logging
*
* @param isClient client
*/
public static void initialize(final boolean isClient)
{
if (s_initialized.getAndSet(true))
{
return;
}
//
// Forward all logs from JUL to SLF4J
{
SLF4JBridgeHandler.uninstall();
SLF4JBridgeHandler.install();
}
if (isClient)
{
// FRESH-267: in server mode, do not (re)set the loglevels. They are coming out of logback.xml and/or application properties and were probably fine-tuned.
// resetting them to info might cause the disk to run full.
setLevel(Level.INFO);
}
}
示例2: execute
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void execute() throws MojoFailureException, MojoExecutionException {
SLF4JBridgeHandler.install();
List<CarnotzetExtension> runtimeExtensions = findRuntimeExtensions();
CarnotzetModuleCoordinates coordinates =
new CarnotzetModuleCoordinates(project.getGroupId(), project.getArtifactId(), project.getVersion());
if (instanceId == null) {
instanceId = Carnotzet.getModuleName(coordinates, Pattern.compile(CarnotzetConfig.DEFAULT_MODULE_FILTER_PATTERN),
Pattern.compile(CarnotzetConfig.DEFAULT_CLASSIFIER_INCLUDE_PATTERN));
}
Path resourcesPath = Paths.get(project.getBuild().getDirectory(), "carnotzet");
if (SystemUtils.IS_OS_WINDOWS) {
// we avoid using ${project.build.directory} because "mvn clean" when the sandbox is running would try to delete mounted files,
// which is not supported on Windows.
resourcesPath = Paths.get("/var/tmp/carnotzet_" + instanceId);
}
CarnotzetConfig config = CarnotzetConfig.builder()
.topLevelModuleId(coordinates)
.resourcesPath(resourcesPath)
.topLevelModuleResourcesPath(project.getBasedir().toPath().resolve("src/main/resources"))
.failOnDependencyCycle(failOnDependencyCycle)
.extensions(runtimeExtensions)
.build();
carnotzet = new Carnotzet(config);
if (bindLocalPorts == null) {
bindLocalPorts = !SystemUtils.IS_OS_LINUX;
}
runtime = new DockerComposeRuntime(carnotzet, instanceId, DefaultCommandRunner.INSTANCE, bindLocalPorts);
executeInternal();
SLF4JBridgeHandler.uninstall();
}
示例3: tearDown
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
// restore
Logger.getRootLogger().removeAllAppenders();
for (Appender appender : appenders) {
Logger.getRootLogger().addAppender(appender);
}
SLF4JBridgeHandler.uninstall();
}
示例4: destroy
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void destroy() {
super.destroy();
try {
SLF4JBridgeHandler.uninstall();
} catch (Exception e) {
}
if (this.contextLoader != null) {
this.contextLoader.closeWebApplicationContext(getServletContext());
}
}
示例5: stop
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void stop( BundleContext context ) throws Exception
{
SLF4JBridgeHandler.uninstall();
}
开发者ID:jitsi,项目名称:jitsi-videobridge-openfire-plugin,代码行数:6,代码来源:SLF4JBridgeHandlerBundleActivator.java
示例6: destroy
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
public void destroy() {
SLF4JBridgeHandler.uninstall();
}
示例7: uninstallSLF4JBridge
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
static public void uninstallSLF4JBridge() {
SLF4JBridgeHandler.uninstall();
}
示例8: uninstallLogback
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
public static void uninstallLogback() {
if (SLF4JBridgeHandler.isInstalled()) SLF4JBridgeHandler.uninstall();
}
示例9: stop
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void stop(BundleContext ctx) {
SLF4JBridgeHandler.uninstall();
}
示例10: unassimilate
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
/**
* Try to unassimilate the logging frameworks.
*/
public static synchronized void unassimilate()
{
SLF4JBridgeHandler.uninstall();
}
示例11: stop
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void stop(BundleContext context) throws Exception {
SLF4JBridgeHandler.uninstall();
}
示例12: contextDestroyed
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void contextDestroyed(final ServletContextEvent sce)
{
SLF4JBridgeHandler.uninstall();
}
示例13: tearDownClass
import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
/**
* Uninstalls the SLF4J-JUL bridge and returns JUL logging to its original
* level.
*/
@AfterClass
public static void tearDownClass() {
SLF4JBridgeHandler.uninstall();
java.util.logging.Logger.getLogger("").setLevel(originalLevel);
}