[OPEN-ILS-DEV] Evergreen logging question

Dale Arntson arnt at uchicago.edu
Wed Feb 18 16:34:49 EST 2009


Thank, Bill. I will get going on enabling syslogs.

-dale

Bill Erickson wrote:
> 
> 
> On Tue, Feb 17, 2009 at 2:00 PM, Dale Arntson <arnt at uchicago.edu 
> <mailto:arnt at uchicago.edu>> wrote:
> 
>     Is there a way to set the format of individual evergreen logs? I
>     want to be able to assign a timestamp to each entry so that I can
>     associate entries with actions. This would make debugging easier and
>     posting to the list more focused.
> 
> 
> 
> Hi Dale,
> 
> For the best control of log message, I'd recommend using syslog.  The 
> default log format includes time information, but using syslog will 
> allow you to alter the format to suit your needs.
> 
> With syslog-ng, you can do things like:
> 
> file("/var/log/remote/$YEAR/$MONTH/$DAY/activity.log",
>     template("$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC $HOST $MSG\n")
> 
> Hope this helps,
> 
> -b
> 
> -- 
> Bill Erickson
> | VP, Software Development & Integration
> | Equinox Software, Inc. / The Evergreen Experts
> | phone: 877-OPEN-ILS (673-6457)
> | email: erickson at esilibrary.com <mailto:erickson at esilibrary.com>
> | web: http://esilibrary.com


More information about the Open-ils-dev mailing list