# Logging 1.3.0

**URL:** <https://www.ruby-forum.com/t/logging-1-3-0/180556>\
**Category:** Ruby\
**Created:** [December 21, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/logging-1-3-0/180556 "2009-12-21T19:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [December 21, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/logging-1-3-0/180556/1 "2009-12-21T19:16:07Z")

</div>

Logging version 1.3.0  
by Tim P.  
[RubyGems.org | your community gem host](http://gemcutter.org/gems/logging)

== DESCRIPTION

Logging is a flexible logging library for use in Ruby programs based on  
the  
design of Java’s log4j library. It features a hierarchical logging  
system,  
custom level names, multiple output destinations per log event, custom  
formatting, and more.

== CHANGES

Minor Enhancements

- Using copy/truncate semantics for a faster RollingFile appender
- Global reopen method for using Logging in forked environments
- RollingFile appender can use date stamps instead of numbers

Of significant note is the change to copy/truncate semantics in the  
RollingFile appender. File locks are used to determine when it is safe  
to  
truncate the log file; this prevents loss of log messages when multiple  
processes are writing to the same file.

For file locks to work properly when the ruby process is forked, the  
logging  
appenders need to be reopened in the forked children. This allows  
exclusive  
file locks to function correctly. To that end a Logging#reopen method  
has been  
provided that will “do the right thing” for appenders that need to be  
reopened.

See the “fork” example in examples diretory for more information.

> <https://github.com/TwP/logging/blob/master/examples/fork.rb>

== CONTACT

Please use the GitHub issue tracker if you discover a bug or have a  
feature  
request. Patches are welcome. Questions about logging are welcome - I  
keep  
track of the ruby-talk mailing list, so please post your questions and  
discussions there.

Blessings,  
TwP
