Skip to content

Commit

Permalink
getting rid of c++11 completely
Browse files Browse the repository at this point in the history
  • Loading branch information
n506 committed Nov 27, 2015
1 parent d1ea101 commit 5c25d4e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions log4z.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,13 @@ struct LogData
LoggerId _id; //dest logger id
int _type; //type
int _typeval;
LOG_LEVEL _level = LOG4Z_DEFAULT_LEVEL; //log level
LOG_LEVEL _level; //log level
time_t _time; //create time
unsigned int _precise; //create time
int _contentLen;
char _content[LOG4Z_LOG_BUF_SIZE]; //content

LogData() : _level(LOG4Z_DEFAULT_LEVEL) {}
};

//////////////////////////////////////////////////////////////////////////
Expand All @@ -286,7 +288,7 @@ struct LoggerInfo
std::string _key; //logger key
std::string _name; // one logger one name.
std::string _path; //path for log file.
LOG_LEVEL _level = LOG4Z_DEFAULT_LEVEL; //filter level
LOG_LEVEL _level; //filter level
bool _display; //display to screen
bool _outfile; //output to file
bool _monthdir; //create directory per month
Expand All @@ -300,8 +302,7 @@ struct LoggerInfo
unsigned int _curWriteLen; //current file length
Log4zFileHandler _handle; //file handle.


LoggerInfo()
LoggerInfo() : _level(LOG4Z_DEFAULT_LEVEL)
{
_enable = false;
_path = LOG4Z_DEFAULT_PATH;
Expand Down

0 comments on commit 5c25d4e

Please sign in to comment.