由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 如何动态改变log4j的log level啊
相关主题
Re: 想起几年前Re: run servlet from command liLog4j 不同环境用不同log file name
问个java logger的问题这个spring 太恶心了
Question about Tomcatjava里面怎么确定程序运行时间啊?
How to ues log4j to send log email in the multithreaded processes as similiar with single-threadedant junit and log4j can't work together
想起几年前Re: run servlet from command line?多个Log4J配置文件问题
大家愿意讨论一下log4j么Log4j expert
Interesting: LimpidLogCan you show me ur Log4J config file?
a stupid mistake I made一道面试题没回答好,学CS的看看 (转载)
相关话题的讨论汇总
话题: level话题: log4j话题: 改变话题: 动态话题: 程序运行
进入Java版参与讨论
1 (共1页)
r*******r
发帖数: 8
1
请问如何动态改变log4j的logging level, 在程序运行的时候?
我想写一个web service 接口, 在程序运行的时候可以接受请求改变logging level
哪位大侠知道怎么做呢?
m******t
发帖数: 2416
2

Try this: get the Logger you want to change level,
and call logger.setLevel().

【在 r*******r 的大作中提到】
: 请问如何动态改变log4j的logging level, 在程序运行的时候?
: 我想写一个web service 接口, 在程序运行的时候可以接受请求改变logging level
: 哪位大侠知道怎么做呢?

B**z
发帖数: 153
3
if you want to change the level for all instances, you can use
Logger.getRootLogger().setLevel()

【在 m******t 的大作中提到】
:
: Try this: get the Logger you want to change level,
: and call logger.setLevel().

1 (共1页)
进入Java版参与讨论
相关主题
一道面试题没回答好,学CS的看看 (转载)想起几年前Re: run servlet from command line?
eclipse 里面开始了程序运行怎么停下来啊?大家愿意讨论一下log4j么
遇到一个程序运行错误Interesting: LimpidLog
请问哪位知道如何用Eclipse编译调试Glassfish么a stupid mistake I made
Re: 想起几年前Re: run servlet from command liLog4j 不同环境用不同log file name
问个java logger的问题这个spring 太恶心了
Question about Tomcatjava里面怎么确定程序运行时间啊?
How to ues log4j to send log email in the multithreaded processes as similiar with single-threadedant junit and log4j can't work together
相关话题的讨论汇总
话题: level话题: log4j话题: 改变话题: 动态话题: 程序运行