$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: John Torjo (john.lists_at_[hidden])
Date: 2004-10-24 09:32:46
Caleb Epstein wrote:
> John> To me, log4cpp seems way too complex and just modeled after the Java way.
> Neal> I agree.
> 
> Thirded.
> 
> Here's a patch for the code in John's logging.zip which should improve
> portability.  I've just built it by hand on Linux and run one of the
> simple test programs successfully.  The changes involve:
> 
> * Use Boost.Thread for all threading, mutex, and tss stuff (requires
> 1.32.0 or CVS)
thanks!
The only reason I did not use boost.thread was because at the time I 
developed it, I couldn't build it as "static runtime".
> * Use boost::detail::atomic_count for the change_id counter
> * Use std::strftime for the prepend_time() format specifier
> 
> I had to put in API-specific calls inside prepend_thread_id. 
> Boost.Thread really ought to offer some way to get at the current
> thread ID.
> 
Thanks for the patch!
I'll try to update my lib, and re-post.
Best,
John
-- 
John Torjo,    Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/
-- v1.5 - tooltips at your fingertips (work for menus too!)
    + bitmap buttons (work for MessageBox too!)
    + tab dialogs, hyper links, lite html