Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flog [TODO1]
08-30-2017, 06:26 PM
Post: #21
RE: flog
(08-18-2017 06:37 PM)zma Wrote:  I recall another discussion at http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=7059&pid=4642 which is similar.

Please add log_also_stderr (let's change it to flog_also_stderr ?). and print the log message to STDERR.

(08-18-2017 06:38 PM)zma Wrote:  To be consistent with names in http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=8242&pid=4787 , how about flog_enable_timestamp ?

Good to me. Implemented in commit a7c934b1e86419c26b9522ccd9c8d670d14a13b5 .
Find all posts by this user
Quote this message in a reply
08-30-2017, 07:02 PM
Post: #22
RE: flog
Remember that, in a distributed environment, stderr is never a reliable communication channel.

More reliable facilities are:
1. mayday log (with an extension to look for multiple nodes' mayday log simultaneously)
2. sure death when fatal error occurs -- this requires we program carefully to make sure of such behavior

We often see our programs run and wrong, but there is no clue where to find the error, and the program may not even die -- it keeps running while you know it has gong wrong. That's a bad system to be investigated. It is life-wasting to debug an issue in such a system.
Find all posts by this user
Quote this message in a reply
09-28-2017, 03:38 PM (This post was last modified: 09-28-2017 03:39 PM by lingu.)
Post: #23
RE: flog
Who's the guardian for flog?

Do we have flog in Python?

Pingshan - Pls write an overview for logging. write no more than 10 lines and cover key info in those 10- lines.
Find all posts by this user
Quote this message in a reply
09-28-2017, 04:40 PM
Post: #24
RE: flog
I'm adding a 'capture' function to capture the stdout to log_pfn

implemented in cod://utilib commit bc6d1ab
Find all posts by this user
Quote this message in a reply
09-29-2017, 11:47 AM
Post: #25
RE: flog
(09-28-2017 03:38 PM)lingu Wrote:  Who's the guardian for flog?

Do we have flog in Python?

Xinjie please be the guardian? You and @lingu implemented most of the flog function. You may be the suitable one.

I don't think there is a Python library for flog yet.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-29-2017, 12:01 PM
Post: #26
RE: flog
(09-28-2017 03:38 PM)lingu Wrote:  Who's the guardian for flog?

Do we have flog in Python?

Pingshan - Pls write an overview for logging. write no more than 10 lines and cover key info in those 10- lines.

Created: http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=9513&pid=5098
Find all posts by this user
Quote this message in a reply
09-29-2017, 02:27 PM
Post: #27
RE: flog
(09-29-2017 11:47 AM)zma Wrote:  Xinjie please be the guardian?

Good to me. Recorded.
Find all posts by this user
Quote this message in a reply
10-02-2017, 11:45 AM
Post: #28
RE: flog
flog (or another logging facility) should implement a python lib to be used in python. It should understand envars like log_pfn.
I find we just use stdout/stderr in python programs and rely on upper level shell progs to do redirection. that's not professional.
Find all posts by this user
Quote this message in a reply
10-04-2017, 02:22 PM
Post: #29
RE: flog
(10-02-2017 11:45 AM)lingu Wrote:  flog (or another logging facility) should implement a python lib to be used in python. It should understand envars like log_pfn.
I find we just use stdout/stderr in python programs and rely on upper level shell progs to do redirection. that's not professional.

Added a TODO item.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: