Last modified: 2014-10-29 11:24:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65412, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63412 - Logger: prefix log output with a timestamp
Logger: prefix log output with a timestamp
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-02 12:49 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-10-29 11:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2014-04-02 12:49:45 UTC
The parsoid service on the beta cluster runs on deployment-parsoid04.eqiad.wmflabs. I have made it to log to /data/project/parsoid/parsoid.log, I guess that is simply the standard/error outputs being redirected there.

It would be very helpful to prefix each message with a human readable timestamp.  For now we get:

 master shutting down, killing workers
 Worker 32039 shutting down
 Exiting master
 master(32050) initializing 5 workers
  - worker(32060) loading...
 ..


The timestamp should probably only be added when run in daemon mode, i.e. when the standard/error outputs are not ttys.
Comment 1 Antoine "hashar" Musso (WMF) 2014-05-06 15:13:16 UTC
Any idea to get timestamps in log files ? :-]
Comment 2 ssastry 2014-10-28 18:15:33 UTC
All events sent to logstash now have timestamps. But, default logging (in development) doesn't. Is this useful for dev?
Comment 3 Antoine "hashar" Musso (WMF) 2014-10-29 11:24:29 UTC
(In reply to ssastry from comment #2)
> All events sent to logstash now have timestamps. But, default logging (in
> development) doesn't. Is this useful for dev?

The purpose was to figure out when a Parsoid daemon related event occurred on beta. Since they are now sent to logstash (bug 57711) that fulfills my original need :-)

Thank you!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links