This is the mail archive of the frysk@sources.redhat.com 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: Core logging from the UI


Phil Muldoon wrote:
To aid us in debugging, we've add a feature to start Core logging from the UI. This aids in tracing down the event sequence of the sometimes very complex UI requests to/from the Core.

To enable Core logging when using the UI, you will need a logging.properties file in your ~/.frysk directory. In there you need to set the log level that you wish to see.

Very very nice, this is going to make debugging so much easier.
Just a though, would it be possible to extend this so that, like for TestRunner, << -c FINE >> and << -l FINE >> work, or perhaps have it controllable via a menu? I think both of those would help make the mechanism more UNIX rather than Java like.


Andrew

ConsoleHander is the level of log detail sent to the console;
FileHandler controls the levels of detail sent to the core event log file.


The contents of my logging.properties are (just two lines):

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.FileHandler.level = FINE

If logging.properties is not present in ~/.frysk or the level set is something that Frysk does not recognize, then logging is defaulted to Level.OFF.

Regards

Phil




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