perfsonar-dev - Re: [pS-dev] Re: perfSONAR error logging
Subject: perfsonar development work
List archive
- From: "Luchesar V. ILIEV" <>
- To: Roman Lapacz <>
- Cc: Domenico Vicinanza <>, Nicolas Simar <>, Jochen Reinwand <>, ,
- Subject: Re: [pS-dev] Re: perfSONAR error logging
- Date: Fri, 06 Jun 2008 16:31:38 +0300
- Disposition-notification-to: "Luchesar V. ILIEV" <>
- Openpgp: id=9A1FEEFF; url=https://cert.acad.bg/pgp-keys/
- Organization: BG.ACAD/IPP-BAS
Hi,
Roman Lapacz wrote:
Domenico Vicinanza wrote:
no, unfortunately it is not there. The log entries (for a request successfully processed, for example) are:
<date> <time>,<number> INFO - RequestHandler: Service received a request
<date> <time>,<number> INFO - RequestHandler: Service sent a successful response
as:
2008-06-04 12:40:36,278 INFO - RequestHandler: Service received a request
2008-06-04 12:40:36,294 INFO - RequestHandler: Service sent a successful response
The easiest way to add additional static information to log lines is updating ConversionPattern in log4j.properties (each java service has this config file).
Example:
log4j.appender.psRootAppender.layout.ConversionPattern=ThisIsOnlyAnExample %d %5p - %m%n
Example of log lines
ThisIsOnlyAnExample 2008-06-06 12:30:36,393 INFO - Initialize Configuration Manager
ThisIsOnlyAnExample 2008-06-06 12:30:37,678 INFO - Initialize component [exist] as [org.perfsonar.base2.service.storage.xml.XMLDBComponent]
[...]
Roman
Could this be configured per installation and service?
E.g. you have RRD-MA and XML-LS services running on the same host, and for one of them the ConversionPattern is:
%RRD-MA@DANTE.
while for the other:
%XML-LS@DANTE.
And on different host, respectively, e.g.:
%RRD-MA@PSNC.
and so on.
Also, I suppose "INFO" in the messages above is related to the severity level, right? I hope it won't be difficult to have this in sync with the syslog severity level used, and also design the ConversionPattern such that in the end the "header" of the message will be like:
%%
bla-bla-bla
Thanks,
Luchesar
Attachment:
signature.asc
Description: OpenPGP digital signature
- Re: perfSONAR error logging, (continued)
- Re: perfSONAR error logging, Domenico Vicinanza, 06/06/2008
- Re: perfSONAR error logging, Nicolas Simar, 06/06/2008
- Re: perfSONAR error logging, Domenico Vicinanza, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Domenico Vicinanza, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Domenico Vicinanza, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: perfSONAR error logging, Domenico Vicinanza, 06/06/2008
- Re: perfSONAR error logging, Nicolas Simar, 06/06/2008
- Re: perfSONAR error logging, Domenico Vicinanza, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Roman Lapacz, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Roman Lapacz, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Roman Lapacz, 06/06/2008
- Re: [pS-dev] Re: perfSONAR error logging, Luchesar V. ILIEV, 06/06/2008
Archive powered by MHonArc 2.6.16.