Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » SystemLog class added
SystemLog class added [message #15860] Tue, 13 May 2008 00:04 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
I've rewritten (basing it on FallingDutch one) a SystemLog class, useful to log messages from user applications.
Includes documentation; here the features:

1 - Level-based logging.
    You can log messages on 1 of eight different message channels,
    DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT and EMERGENCY
    Each level is switchable on/off on the fly.
    Example :
       SysLog.EnableLevels(ERROR | WARNING | DEBUG);
       SysLog(ERROR) << "an error";
       SysLog(NOTICE) << "a notice";
       SysLog(DEBUG) << "a debug message";

    Here, just first and third messages are logged.

2 - SysLog global object, just needed to use SystemLog package.

3 - Streaming-like << operator.

4 - Logging can be directed to Cerr() and/or Cout() streams, to  
    system log file and/or to Upp application log file.
    Example :
       SysLog.EnableCout(true);
       SysLog.EnableCerr(false);
       SysLog.EnableSysLog(true);
       SysLog.EnableUppLog(true);

    Here log is put on both Cout() stream, System log file and Upp application log file.
       


Enjoy !

Ciao

Max

[Updated on: Tue, 13 May 2008 00:54]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Modified SliderCtrl
Next Topic: DialSlider (curved slider ctrl)
Goto Forum:
  


Current Time: Sun Apr 28 13:33:00 CEST 2024

Total time taken to generate the page: 0.68450 seconds