updating installer
i updated all installers to use tasks instead of services, made the uninstaller to work, and overworked the whole installing process
This commit is contained in:
@@ -11,7 +11,8 @@ enum class LOGLEVEL {
|
||||
WARN,
|
||||
ERR,
|
||||
VIRUS,
|
||||
RISK
|
||||
RISK,
|
||||
PANIC
|
||||
};
|
||||
|
||||
std::string get_loglevel(LOGLEVEL level);
|
||||
@@ -54,6 +55,9 @@ void log(LOGLEVEL level, const std::string& message, Args&&... args) {
|
||||
case LOGLEVEL::RISK:
|
||||
error=fopen_s(&fp, RISKFILE, "a");
|
||||
break;
|
||||
case LOGLEVEL::PANIC:
|
||||
error = fopen_s(&fp, PANICFILE, "a");
|
||||
break;
|
||||
|
||||
default:
|
||||
error=fopen_s(&fp, LOGFILE, "a");
|
||||
@@ -81,6 +85,9 @@ void log(LOGLEVEL level, const std::string& message, Args&&... args) {
|
||||
case LOGLEVEL::RISK:
|
||||
fprintf_s(fp, "%s", logString.c_str());
|
||||
break;
|
||||
case LOGLEVEL::PANIC:
|
||||
fprintf_s(fp, "%s", logString.c_str());
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf_s(fp, "%s", logString.c_str());
|
||||
|
||||
Reference in New Issue
Block a user