LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  March 2015

QSERV-L March 2015

Subject:

Re: logging (again)

From:

Kian-Tat Lim <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Tue, 3 Mar 2015 07:43:11 -0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (64 lines)

Jacek,

> We need to come back to the topic of logging. Andy (S) is telling
> me that we recently decided to stick in Qserv with native python
> log, and attach that log stream to the lsst logging. I do remember
> we discussed this, but somehow it didn't fully occur to me that we
> are not going to use our lsst logging in Qserv directly. Because...
> if indeed that is the case, it does not make much sense to introduce
> it in the "db" module (which I just did in DM-2137), which means
> it does not make sense to use it in metaserv/imgserv/dbserv/webserv.
> 
> So, I would like us to be completely clear about it before we
> go that route. (I am not very comfortable with going that route).
> And I want to make sure K-T is not going to shoot us when he
> discovers our plans. :)

	C++ code needs to log via log4cxx.  Having C++ log via the
Python logger is, as far as I know, 1) difficult and 2) impossible if
C++ code is not called from Python, which may still occur at times.

	Python code can log via log4cxx using lsst.log.  It can also log
via the Python library logger.  The library logger can be configured to
output to log4cxx, but I think that generally requires two configuration
files, which I have generally resisted; I'm not sure if it also requires
an actual code change to import lsst.log.

	The compromise I had approved before was that small Python-only
scripts that are not expected to produce production logs could use the
Python library logger only.

	But logging in packages that are shared with the Science
Pipelines portion of the Stack (like db or sphgeom) needs to take more
care to be compatible with C++ and its usage.

	The requirements I have in mind are:

1) Minimize the number of places that logging configuration is stored.
Even if logging users tend to be more sophisticated developers, I think
having many configuration locations makes our system hard to use.

2) Generate log outputs that are consistent in terms of format and
content.  Having non-ISO times (or no times at all), components in
different orders, etc. makes interpretation hard.

3) Be able to configure logging at a fine grain (definitely package
level; usually class level or even below).

4) Permit urgent log messages to be sent via DM Messages (currently
known as ctrl_events).  This will allow rapid response to problems as
opposed to waiting for log files to be collected.

5) Have the primary log output from a single "application" go to a
single place.  I think it's a lot easier to debug if all the information
is collected together and not scattered across multiple files.

-- 
Kian-Tat Lim, LSST Data Management, [log in to unmask]

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use