Happy 2021

This commit is contained in:
Duke Leto
2021-01-02 11:20:58 -05:00
parent 3e79044f25
commit 0cee4989c0
92 changed files with 228 additions and 90 deletions

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGCONTEXT_H
#define LOGCONTEXT_H
@@ -8,4 +10,4 @@ class LogContext
virtual void log(std::string message) {};
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGCRITICAL_H
#define LOGCRITICAL_H
@@ -15,4 +17,4 @@ class LogCritical : public LogStrategy
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGDEBUG_H
#define LOGDEBUG_H
@@ -15,4 +17,4 @@ class LogDebug : public LogStrategy
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGERROR_H
#define LOGERROR_H
@@ -15,4 +17,4 @@ class LogError : public LogStrategy
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGFATAL_H
#define LOGFATAL_H
@@ -15,4 +17,4 @@ class LogFatal : public LogStrategy
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGINFO_H
#define LOGINFO_H
@@ -15,4 +17,4 @@ class LogInfo : public LogStrategy
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGSTRATEGY_H
#define LOGSTRATEGY_H
@@ -8,4 +10,4 @@ class LogStrategy
virtual void log(std::string message) {};
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGSUCCESS_H
#define LOGSUCCESS_H
@@ -15,4 +17,4 @@ class LogSuccess : public LogStrategy
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGTYPE_H
#define LOGTYPE_H
@@ -44,4 +46,4 @@ class LogType
}
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGWARNING_H
#define LOGWARNING_H
@@ -15,4 +17,4 @@ class LogWarning : public LogStrategy
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "LogWriter.h"
LogWriter* LogWriter::getInstance()
@@ -32,4 +34,4 @@ void LogWriter::write(LogType::TYPE type, std::string message)
}
writer.close();
}
}

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGWRITER_H
#define LOGWRITER_H
@@ -19,4 +21,4 @@ class LogWriter
static LogWriter* instance;
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef LOGGER_H
#define LOGGER_H
@@ -22,4 +24,4 @@ class Logger : LogContext
}
};
LogWriter* LogWriter::instance = nullptr;
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef SIMPLELOGGER_H
#define SIMPLELOGGER_H
@@ -81,4 +83,4 @@ class SimpleLogger
}
};
#endif
#endif

View File

@@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "SimpleLogger.h"
int main(int argc, char** argv)
@@ -11,4 +13,4 @@ int main(int argc, char** argv)
sl.logFatal("test fatal");
sl.logCritical("test critical");
return 0;
}
}