This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: a simpler logger [?]


FYI,

Much of frysk-sys is now using this logger; in switching my stack-smash bug seems to have gone back into hiding, sigh :-(

In using this logger, I've also made the following refinements:

-> The option is renamed to << -debug <what> >> rather than << -trace <what> >>; "trace" gets confusing when using tools such as ftrace (I'm not sure that -debug is much better though :-)

-> The option parser is far more (far too?) forgiving in what it accepts; for instance:
-debug frysk.expunit -- default to level FINE
-debug frysk.expunit=FINEST -- explicit
-debug FINE -- global


-> The logger understands class inheritance - explicitly setting a super classes log-level automatically updates all sub-classes; for instance:
-debug frysk.junit.TestCase -- enables logging for all instances of TestCase including sub-classes.


Andrew

Andrew Cagney wrote:
FYI,

I've marked up frysk.expunit to use this logger (so people can see it working). Enable it with something like:
./TestRunner -trace FINE frysk.hpd.TestLoadCommand
or:
./TtestRunner -trace frysk.expunit=FINEST frysk.hpd.TestLoadCommand


Andrew

Andrew Cagney wrote:
Hi,

I've just added a frysk.rsl (really simple logger?) package as a possible alternative to the java logging framework we're currently using. The "advantages" as I'll spin them are:

-> the logging call is unlocked (at least in the logger level)
so the ongoing saga of older log implementations deadlocking is avoided

-> nested logging works

-> it supports a completer interface
so that << (fhpd) frysk log frysk.proc.<TAB> >> can give a known list of loggers


-> [I think] the call interface is simpler and lighter
for instance << log.fine(this, "adding foo") >> or << log.fine(this, "adding foo=", foo); >> (we can add more methods as we need them :-)


thoughts?

Andrew




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]