Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@
// void Logger::<your-function>() { ... }
// Here "Logger" is your class name declared in "includes/Logger.h"

void Logger::info(std::string msg){
std::cout << "[INFO] "<<msg<<std::endl;
}

void Logger::warn(std::string msg){
std::cout << "[WARNING] "<<msg<<std::endl;
}

void Logger::error(std::string msg){
std::cout<<"[ERROR] "<<msg<<std::endl;
}


// Logger Constructor Definition
Logger::Logger() {
std::cout << "Logger Constructor called!\n";
Expand Down
3 changes: 3 additions & 0 deletions src/includes/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ class Logger {
// Your public methods/member variables here
Logger();
~Logger();
void info(std::string msg);
void warn(std::string msg);
void error(std::string msg);

private:
// Your private methods/member variables here
Expand Down