LogLevel
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:LogLevel is a small utility to show and change Java loggers and log4j loggers (requires Log4jJMXSupport) logging levels on the run.
README - loglevel
-----------------

Usage: java -jar logLevel.jar [-? | -h | -help | --help | --version]
       java -jar logLevel.jar COMMAND [ARGS]


DESCRIPTION
-----------
'loglevel' is a small command line utility to show and change a logging level of Java Loggers
(java.util.logging.Logger) and log4j loggers (org.apache.log4j.Logger) without restarting
the target JVM. With Java 1.5 to get this to work requires that the target JVM has been started
with -Dcom.sun.management.jmxremote.

With Java 1.6 or later things are easier. Of course, the above works perfectly well but with
Java 1.6 even if the target JVM has been started without -Dcom.sun.management.jmxremote
the JMX agent can be started for the target JVM without restarting it. This can be achieved
by using the companion utility 'startjmx'.


REQUIREMENTS
------------
- Java 1.5 or later
- log4j loggers require Log4jJMXSupport utility classes (log4j-jmx-support-x.x.x.jar)
  - if JMX support for log4j is wanted without touching the source code then two additional
    libraries are required:
    - Log4jJMXSupportAgentDelegate (log4j-jmx-support-delegate-1.0.0.jar or later)
    - General Java agent (agent-2.0.0.jar or later)

Be aware that a dependency to Sun's tools.jar is a system dependency and thus needs to be set
accordingly if you are to compile this utility from the source. In Sun's reference implementation
(1.5) this artifact is called tools.jar but, for example, on Mac OSX 10.6 needed classes are in
classes.jar.

Also, when running the utility the same artifact must be found from the class path, of course.


LICENSE
-------
MIT License

Copyright (c) 2010 Hapi, http://www.hapiware.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。