Revision 4fd46efa
Added by david.sorber over 2 years ago
| src/CopyManagerOptions.h | ||
|---|---|---|
|
public:
|
||
|
|
||
|
// Log option defaults
|
||
|
static const bool DEFAULT_DISABLE_LOG{false};
|
||
|
static const bool DEFAULT_ENABLE_LOG{false};
|
||
|
static const bool DEFAULT_LOG_TO_STDERR{true};
|
||
|
static const int DEFAULT_LOG_LEVEL{3};
|
||
|
static inline const std::string DEFAULT_LOG_FILE_PATH{"./copyfile.log"};
|
||
| ... | ... | |
|
return m_destPath;
|
||
|
}
|
||
|
|
||
|
inline bool getDisableLog() const
|
||
|
inline bool getEnableLog() const
|
||
|
{
|
||
|
return m_disableLog;
|
||
|
return m_enableLog;
|
||
|
}
|
||
|
|
||
|
inline bool getLogToStderr() const
|
||
| ... | ... | |
|
std::string m_destPath; // destination path; "copy to"
|
||
|
|
||
|
// Logging related options
|
||
|
bool m_disableLog; // Enable/disable the log
|
||
|
bool m_enableLog; // Enable/disable the log
|
||
|
bool m_logToStderr; // Write log messages to stderr instead of file
|
||
|
const std::string& r_logFilePath; // Path to log file
|
||
|
int m_logLevel; // Log messages >= selected level will be output
|
||
Change "disable-log" option to "enable-log" and make the log disabled by
default. Also add a warning if unsupported directory entries are
detected while copying. Version: v0.2.1.