Browse Source

Changed logging format and minor formatting fix.

tempestpy_adaptions
dehnert 12 years ago
parent
commit
2d80eb39b3
  1. 2
      src/mrmc.cpp
  2. 3
      src/sparse/static_sparse_matrix.h
  3. 2
      test/mrmc-tests.cpp

2
src/mrmc.cpp

@ -39,7 +39,7 @@ log4cplus::Logger logger;
void setUpLogging() {
log4cplus::SharedAppenderPtr fileLogAppender(new log4cplus::FileAppender("mrmc.log"));
fileLogAppender->setName("mainFileAppender");
fileLogAppender->setLayout(std::auto_ptr<log4cplus::Layout>(new log4cplus::PatternLayout("%-5p - %D{%H:%M:%s} (%r ms) - %F:%L : %m%n")));
fileLogAppender->setLayout(std::auto_ptr<log4cplus::Layout>(new log4cplus::PatternLayout("%-5p - %D{%H:%M} (%r ms) - %F:%L : %m%n")));
logger = log4cplus::Logger::getInstance("mainLogger");
logger.addAppender(fileLogAppender);

3
src/sparse/static_sparse_matrix.h

@ -11,12 +11,11 @@
#include "src/exceptions/file_IO_exception.h"
#include "src/misc/const_templates.h"
#include "Eigen/Sparse"
#include "log4cplus/logger.h"
#include "log4cplus/loggingmacros.h"
#include "Eigen/Sparse"
extern log4cplus::Logger logger;
namespace mrmc {

2
test/mrmc-tests.cpp

@ -14,7 +14,7 @@ log4cplus::Logger logger;
void setUpLogging() {
log4cplus::SharedAppenderPtr fileLogAppender(new log4cplus::FileAppender("mrmc-tests.log"));
fileLogAppender->setName("mainFileAppender");
fileLogAppender->setLayout(std::auto_ptr<log4cplus::Layout>(new log4cplus::PatternLayout("%-5p - %D{%H:%M:%s} (%r ms) - %F:%L : %m%n")));
fileLogAppender->setLayout(std::auto_ptr<log4cplus::Layout>(new log4cplus::PatternLayout("%-5p - %D{%H:%M} (%r ms) - %F:%L : %m%n")));
logger = log4cplus::Logger::getInstance("mainLogger");
logger.addAppender(fileLogAppender);

Loading…
Cancel
Save