This commit is contained in:
Suraxius committed 2021-01-12 00:11:47 +01:00
1 parent 064ac24c10
commit 05325b0ca7
5 files changed
+69 -10

No files matched your search

+8
View File
@@ -98,6 +98,14 @@ Logger::Sink& Logger::Sink::operator<<(const char* msg) {
return *this;
}
Logger::Sink& Logger::Sink::operator<<(const long msg) {
if ( level >= parent.logLevel ) {
prefixLine();
*parent.output << msg;
}
return *this;
}
Logger::Sink& Logger::Sink::operator<<(const unsigned long msg) {
if ( level >= parent.logLevel ) {
prefixLine();
+1
View File
@@ -34,6 +34,7 @@ class Logger {
Sink& operator<<(const char character);
Sink& operator<<(const string& msg);
Sink& operator<<(const char* msg);
Sink& operator<<(const long msg);
Sink& operator<<(const unsigned long msg);
};
-1
View File
@@ -23,7 +23,6 @@ int main(int args, char **argv) {
//Record testrec = ARecord();
logger.info << "Testing overloading!" << " with chaining!" << Logger::commit;
logger.debug.ln ("PlaiNS successfully started.");
return 0;