winix can drop privileges now (if started as the root)
added parameters to the config: user (string) group (string) additional_groups (bool) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@668 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
24
core/log.h
24
core/log.h
@@ -25,16 +25,6 @@ enum Manipulators { logsave, logsavenow, logend, log1, log2, log3 };
|
||||
|
||||
class Log
|
||||
{
|
||||
std::ostringstream buffer;
|
||||
int log_level, current_level;
|
||||
int item, item_save;
|
||||
std::string log_file;
|
||||
bool log_stdout;
|
||||
std::ofstream file;
|
||||
int lines;
|
||||
|
||||
void OpenFile();
|
||||
|
||||
public:
|
||||
|
||||
Log();
|
||||
@@ -54,8 +44,20 @@ public:
|
||||
Log & operator<<(Manipulators m);
|
||||
|
||||
void SystemErr(int err);
|
||||
|
||||
void SaveLog();
|
||||
|
||||
private:
|
||||
std::ostringstream buffer;
|
||||
int log_level, current_level;
|
||||
int item, item_save;
|
||||
std::string log_file;
|
||||
bool log_stdout;
|
||||
std::ofstream file;
|
||||
int lines;
|
||||
bool log_file_open;
|
||||
|
||||
void OpenFile();
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user