📄 logger.h
字号:
#ifndef LOGGER_H_#define LOGGER_H_#include <string>#include <iostream>#include <fstream>/** * Utility class for logging. * The methods should be self-explainatory. * * It writes the output to the standard output * and to a logfile called "sip2p.log". */ class Logger{ public: Logger(const std::string& senderName); virtual ~Logger(); void debug(const std::string& msg); void debug(const std::string& msg, int number); void debug(const char * msg); void debug(const char * msg, int number); void debug(int i); private: std::string name; static std::ofstream outFile; };#endif /*LOGGER_H_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -