Changeset 97 for XMLIO_V2/dev/dev_rv/xmlio_logger.hpp
- Timestamp:
- 06/04/10 15:59:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/xmlio_logger.hpp
r95 r97 10 10 #include <Poco/Message.h> 11 11 12 #include <Poco/AutoPtr.h> 13 14 12 15 // Classes utilisées issues de Poco 13 16 using Poco::Logger; … … 17 20 using Poco::FileChannel; 18 21 using Poco::Message; 22 23 using Poco::AutoPtr; 19 24 20 25 namespace XMLIOSERVER … … 29 34 30 35 // TODO Créer une sortie fichier. 31 pf = new PatternFormatter("[%Y-%m-%d %H:%M:%S] %t");32 cc = new ConsoleChannel();33 pFCConsole = new FormattingChannel();36 AutoPtr<PatternFormatter> pf = new PatternFormatter("[%Y-%m-%d %H:%M:%S] %t"); 37 AutoPtr<ConsoleChannel> cc = new ConsoleChannel(); 38 AutoPtr<FormattingChannel> pFCConsole = new FormattingChannel(pf); 34 39 pFCConsole->setChannel(cc); 35 40 pFCConsole->open(); … … 39 44 static Logger & GetConsoleLogger(void) {return (Logger::get("ConsoleLogger"));} 40 45 41 ~ILogger(void) { delete pf;} 42 43 private : 44 FormattingChannel * pFCConsole; 45 PatternFormatter * pf; 46 ConsoleChannel * cc; 47 46 ~ILogger(void) 47 { /* Ne rien faire de plus */ } 48 48 49 }; // class XMLIOLogger 49 50
Note: See TracChangeset
for help on using the changeset viewer.