Skip to Content.
Sympa Menu

shibboleth-dev - RE: shib target stuff logs with UNIX time ?

Subject: Shibboleth Developers

List archive

RE: shib target stuff logs with UNIX time ?


Chronological Thread 
  • From: "RL 'Bob' Morgan" <>
  • To: Shibboleth Design Team <>
  • Subject: RE: shib target stuff logs with UNIX time ?
  • Date: Tue, 25 Mar 2003 17:23:33 -0800 (PST)


On Sat, 22 Mar 2003, Scott Cantor wrote:

> > Would seem more normal to use local time string values like
> > other things do. I poked thru the log4cpp docs but couldn't
> > find anything obvious about whether this can be configured.
>
> I'm fairly certain that the subset of log4j syntax that it supports
> includes some support for custom layouts, including timestmap
> formatting.

Some grovelling thru the code led me to substitute, in each of the
*.logger files in /opt/shibboleth/etc/shibboleth/, for this original line:

log4j.appender.syslog.layout=org.apache.log4j.BasicLayout

these new lines:

log4j.appender.syslog.layout=org.apache.log4j.PatternLayout
log4j.appender.syslog.layout.ConversionPattern=%d{%Y-%m-%d %H:%M:%S} %p
%c %x: %m%n

(without the line break), which makes log entries come out as:

2003-03-25 17:19:33 DEBUG shibtarget::ResourceEntry [3] get_assertions
getAssertions populate isValid: yep, all still valid

So we may want to put lines like the above into the distributed logger
files.

- RL "Bob"


------------------------------------------------------mace-shib-design-+
For list utilities, archives, subscribe, unsubscribe, etc. please visit the
ListProc web interface at

http://archives.internet2.edu/

------------------------------------------------------mace-shib-design--




Archive powered by MHonArc 2.6.16.

Top of Page