mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 18:56:23 -04:00
removed dead code and cleanup
This commit is contained in:
parent
09afbbed5d
commit
d8235c6caf
2 changed files with 9 additions and 71 deletions
|
@ -48,35 +48,29 @@ namespace RsLog {
|
|||
struct logInfo {
|
||||
// module specific log lvl
|
||||
logLvl lvl;
|
||||
// module name
|
||||
// module name (displayed in log)
|
||||
const std::string name;
|
||||
};
|
||||
}
|
||||
|
||||
// current RS code uses these (deprecated) defines
|
||||
#define RSL_NONE RsLog::None
|
||||
#define RSL_ALERT RsLog::Alert
|
||||
#define RSL_ERROR RsLog::Error
|
||||
#define RSL_WARNING RsLog::Warning
|
||||
#define RSL_DEBUG_ALERT RsLog::Debug_Alert
|
||||
#define RSL_DEBUG_BASIC RsLog::Debug_Basic
|
||||
#define RSL_DEBUG_ALL RsLog::Debug_Basic
|
||||
|
||||
int setDebugCrashMode(const char *cfile);
|
||||
//int clearDebugCrashLog();
|
||||
|
||||
int setDebugFile(const char *fname);
|
||||
int setOutputLevel(RsLog::logLvl lvl);
|
||||
//int setZoneLevel(int lvl, int zone);
|
||||
//int getZoneLevel(int zone);
|
||||
void rslog(const RsLog::logLvl lvl, RsLog::logInfo *info, const std::string &msg);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* retaining old #DEFINES and functions for backward compatibility.
|
||||
*/
|
||||
|
||||
#define RSL_NONE RsLog::None
|
||||
#define RSL_ALERT RsLog::Alert
|
||||
#define RSL_ERROR RsLog::Error
|
||||
#define RSL_WARNING RsLog::Warning
|
||||
#define RSL_DEBUG_ALERT RsLog::Debug_Alert
|
||||
#define RSL_DEBUG_BASIC RsLog::Debug_Basic
|
||||
#define RSL_DEBUG_ALL RsLog::Debug_Basic
|
||||
|
||||
//int pqioutput(unsigned int lvl, int zone, std::string msg);
|
||||
#define pqioutput rslog
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue