CARLsim  6.1.0
CARLsim: a GPU-accelerated SNN simulator
Logger.h
Go to the documentation of this file.
1 #ifndef LOGGER
2 #define LOGGER
3 
4 #include <iostream>
5 
10 class Logger {
11 public:
13 
24  Logger(const Level level, std::ostream &logStream = std::cout);
25 
31  virtual void log(const Level level, const char * const message);
32 
34  Level getLevel();
35 private:
36  const Level loggerLevel;
37  std::ostream &logStream;
38 };
39 #endif
Definition: Logger.h:10
virtual void log(const Level level, const char *const message)
Definition: Logger.cpp:11
Logger(const Level level, std::ostream &logStream=std::cout)
Definition: Logger.cpp:8
Level
Definition: Logger.h:12
Level getLevel()
Definition: Logger.cpp:17