当前位置: 首页>>代码示例>>Java>>正文


Java SLF4JBridgeHandler.uninstall方法代码示例

本文整理汇总了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);
	}
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:27,代码来源:LogManager.java

示例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();
}
 
开发者ID:swissquote,项目名称:carnotzet,代码行数:40,代码来源:AbstractZetMojo.java

示例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();
}
 
开发者ID:sterodium,项目名称:selenium-grid-extensions,代码行数:11,代码来源:LoggingConfiguratorTest.java

示例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());
    }
}
 
开发者ID:devacfr,项目名称:spring-restlet,代码行数:12,代码来源:RestletSpringApplicationContextServlet.java

示例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();
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:4,代码来源:JulHandler.java

示例7: uninstallSLF4JBridge

import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
static public void uninstallSLF4JBridge() {
	SLF4JBridgeHandler.uninstall();
}
 
开发者ID:xbuf,项目名称:jme3_xbuf,代码行数:4,代码来源:ModelViewer.java

示例8: uninstallLogback

import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
public static void uninstallLogback() {
  if (SLF4JBridgeHandler.isInstalled()) SLF4JBridgeHandler.uninstall();
}
 
开发者ID:soklet,项目名称:soklet,代码行数:4,代码来源:LoggingUtils.java

示例9: stop

import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void stop(BundleContext ctx) {
    SLF4JBridgeHandler.uninstall();
}
 
开发者ID:arievanwi,项目名称:osgi.ee,代码行数:5,代码来源:Activator.java

示例10: unassimilate

import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
/**
 * Try to unassimilate the logging frameworks.
 */
public static synchronized void unassimilate()
{
    SLF4JBridgeHandler.uninstall();
}
 
开发者ID:opentable,项目名称:otj-logging,代码行数:8,代码来源:AssimilateForeignLogging.java

示例11: stop

import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void stop(BundleContext context) throws Exception {
	SLF4JBridgeHandler.uninstall();
}
 
开发者ID:frincon,项目名称:openeos,代码行数:5,代码来源:Activator.java

示例12: contextDestroyed

import org.slf4j.bridge.SLF4JBridgeHandler; //导入方法依赖的package包/类
@Override
public void contextDestroyed(final ServletContextEvent sce)
{
    SLF4JBridgeHandler.uninstall();
}
 
开发者ID:fge,项目名称:json-schema-validator-demo,代码行数:6,代码来源:JerseyUseSlf4jPlease.java

示例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);
}
 
开发者ID:sworisbreathing,项目名称:sfmf4j,代码行数:10,代码来源:JPathWatchTest.java


注:本文中的org.slf4j.bridge.SLF4JBridgeHandler.uninstall方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。