Skip to content

Releases: jcabi/jcabi-log

Logger.isEnabled()

12 Jun 20:20
Compare
Choose a tag to compare

New static method Logger.isEnabled() added in this version

stdoutQuietly() bug fix

09 Jun 05:22
Compare
Choose a tag to compare

Bug fixed in stdoutQuietly(), see #10

jcabi-parent 1.8

28 May 14:54
Compare
Choose a tag to compare

Parent 1.8, multiple minor issues fixed

Logger throws when too many params

05 Mar 09:01
Compare
Choose a tag to compare

As suggested in #8 Logger in this version throws a runtime exception when total number of provided arguments is bigger than required in format pattern.

Besides that, this version resolves all FindBugs complaints.

log4j is an optional dependency

23 Dec 09:20
Compare
Choose a tag to compare

In this version log4j:log4j is an optional dependency, see #6 for more details

VerboseProcess(ProcessBuilder, Level, Level) ctor

01 Nov 12:29
Compare
Choose a tag to compare

This version added new VerboseProcess(ProcessBuilder, Level, Level) ctor

Configurable logging levels in VerboseProcess

27 Oct 11:15
Compare
Choose a tag to compare

In this version you can configure logging levels in VerboseProcess, for example:

new VerboseProcess(
  new ProcessBuilder("echo", "Hello, world!").start(),
  Level.INFO, // stdout logging level
  Level.SEVERE // stderr logging level
).stdout();

Stderr logged with WARN level

27 Oct 09:21
Compare
Choose a tag to compare

Bug #4 fixed in this version, now VerboseProcess logs stderr with WARN logging level.

VerboseProcess#stdoutQuietly()

20 Oct 07:46
Compare
Choose a tag to compare

New method stdoutQuietly() added to VerboseProcess. This method, in contrary to stdout(), doesn't throw a runtime exception when exit code of the process is not equal to zero.

Custom colors and levels in MulticolorLayout

29 Sep 10:41
Compare
Choose a tag to compare

An ability to specify custom colors and levels was added in MulticolorLayout, for example:

log4j.rootLogger=INFO, CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=com.jcabi.log.MulticolorLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%color{%-5p}] %c: %m%n
log4j.appender.CONSOLE.layout.Levels=INFO:2;10,WARN:2;32
log4j.appender.CONSOLE.layout.Colors=white:10

More details see here.