You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
429 B
29 lines
429 B
#include <log.hpp>
|
|
|
|
#include <string>
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
namespace log::internal {
|
|
Level level = INFO;
|
|
int group = 0;
|
|
|
|
void printFormatted(const char * format) {
|
|
cerr << format;
|
|
}
|
|
}
|
|
|
|
namespace log {
|
|
void open() {
|
|
++internal::group;
|
|
}
|
|
|
|
void close() {
|
|
--internal::group;
|
|
}
|
|
|
|
void setLevel(Level toLevel) {
|
|
internal::level = toLevel;
|
|
}
|
|
} |