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 17:05:31 +0300
- Disposition-notification-to: "Luchesar V. ILIEV" <>
- Openpgp: id=9A1FEEFF; url=https://cert.acad.bg/pgp-keys/
- Organization: BG.ACAD/IPP-BAS
Thank you very much, Roman.
It seems there will be a bit more change in the "header" format, but it's certainly nice to know that implementing it is possible, and not too difficult (which has always been one of my goals, indeed.)
Cheers,
Luchesar
Roman Lapacz wrote:
Luchesar V. ILIEV wrote:
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?
yes
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?
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
Example for
log4j.appender.CONSOLE.layout.ConversionPattern=%%RRD@PSNC.%p%%
%m%n
%%
Deploying module: script-1.3
%%
Deploying module: addressing-1.3
%%
Deploying module: metadataExchange-1.3
%%
Deploying module: soapmonitor-1.3
%%
Deploying module: ping-1.3
%%
script module activated
%%
Deploying Web service: version.aar
%%
Deploying Web service: test-service.aar
%%
Initialize Configuration Manager
%% Initialize component [exist] as [org.perfsonar.base2.service.storage.xml.XMLDBComponent]
%% Initialize component [queryGeneratorManager] as [org.perfsonar.service.measurementArchive.rrdType.storage.exist.QueryGeneratorManager]
%% Initialize component [metadataStorageDAO] as [org.perfsonar.service.measurementArchive.rrdType.storage.exist.ExistMetadataStorageDAOImpl]
%%
Initialize Configuration Manager
%% Initialize component [dataStorageDAO] as [org.perfsonar.service.measurementArchive.rrdType.storage.rrd.RRDDataStorageDAOImpl]
%%
[SimpleAxisServer] Started
[SimpleAxisServer] Started
%%
Listening on port 8080
Roman
Thanks,
Luchesar
Attachment:
signature.asc
Description: OpenPGP digital signature
- Re: perfSONAR error logging, (continued)
- 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: [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
Archive powered by MHonArc 2.6.16.