loggingutils

Loggingutils is a small and simple wrapper around JavaSysMon (https://github.com/jezhumble/javasysmon)

License

License

Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

com.simonmittag
ArtifactId

ArtifactId

loggingutils
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

loggingutils
Loggingutils is a small and simple wrapper around JavaSysMon (https://github.com/jezhumble/javasysmon)
Project URL

Project URL

https://github.com/simonmittag/loggingutils
Source Code Management

Source Code Management

https://github.com/simonmittag/loggingutils.git

Download loggingutils

How to add to project

<!-- https://jarcasting.com/artifacts/com.simonmittag/loggingutils/ -->
<dependency>
    <groupId>com.simonmittag</groupId>
    <artifactId>loggingutils</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.simonmittag/loggingutils/
implementation 'com.simonmittag:loggingutils:1.0'
// https://jarcasting.com/artifacts/com.simonmittag/loggingutils/
implementation ("com.simonmittag:loggingutils:1.0")
'com.simonmittag:loggingutils:jar:1.0'
<dependency org="com.simonmittag" name="loggingutils" rev="1.0">
  <artifact name="loggingutils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.simonmittag', module='loggingutils', version='1.0')
)
libraryDependencies += "com.simonmittag" % "loggingutils" % "1.0"
[com.simonmittag/loggingutils "1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
commons-logging : commons-logging jar 1.1.3

provided (3)

Group / Artifact Type Version
org.apache.geronimo.specs : geronimo-servlet_3.0_spec jar 1.0
org.apache.tomcat : tomcat-catalina jar 7.0.0
com.typesafe.play : play_2.11 jar 2.5.4

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

Loggingutils

Loggingutils is a small and simple wrapper around JavaSysMon (https://github.com/jezhumble/javasysmon) by Jez Humble. It prints system stats to the standard logging system (via commons-logging) in regular intervals.

Building from source

Use maven to build:

mvn clean package

Import

Declare as maven dependency

<dependency>
  <groupId>com.simonmittag</groupId>
  <artifactId>loggingutils</artifactId>
  <version>1.0</version>
</dependency>

Using the library from Servlet container

Simply put the jar in your classpath, and use it like this by including in your web.xml:

<listener>
    <listener-class>com.simonmittag.loggingutils.LoggingDaemonContextListener</listener-class>
</listener>

Current support and limitations (from JavaSysMon, see above)

  • Currently supports Mac OS X, Linux, Windows, and Solaris
  • Solaris binary is compiled on x86 on OpenSolaris, so it won't work on SPARC, and has not been tested on SunOS < 5.11
  • Solaris CPU usage only correctly reports usage for first CPU.
  • Supports Java 1.4 and above
  • CPU speed on Linux only reports correct values for Intel CPUs

License

Loggingutils uses the Apache license. It is based on JavaSysMon which is available under a NetBSD license: https://github.com/jezhumble/javasysmon/blob/master/LICENSE

Versions

Version
1.0