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
:
12
enum
Level
{
DEBUG
=0,
DEVELOPER
,
USER
,
WARNING
,
ERROR
};
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
Logger
Definition:
Logger.h:10
Logger::log
virtual void log(const Level level, const char *const message)
Definition:
Logger.cpp:11
Logger::ERROR
Definition:
Logger.h:12
Logger::Logger
Logger(const Level level, std::ostream &logStream=std::cout)
Definition:
Logger.cpp:8
Logger::DEBUG
Definition:
Logger.h:12
Logger::DEVELOPER
Definition:
Logger.h:12
Logger::Level
Level
Definition:
Logger.h:12
Logger::USER
Definition:
Logger.h:12
Logger::getLevel
Level getLevel()
Definition:
Logger.cpp:17
Logger::WARNING
Definition:
Logger.h:12
tools
pti
Logger.h
Generated on Mon Jul 10 2023 12:42:29 for CARLsim by
1.8.13