Device Manager 4 Linux is a distro agnostic graphical device manager for Linux that lets you disable and enable devices without blacklisting the associated kernel module and without requiring a reboot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
1.1 KiB

#ifndef PRIVATE_LOGGER
#define PRIVATE_LOGGER
#ifndef classname
// #define classname std::string(typeid(this).name())
#endif
#ifndef plog
#define plog(val) m_cout << "...[ OK-" << PROJECT_ID << "]: " << std::string(__FILE__) + ", " + std::string(__func__) + std::string("()[") + std::to_string(__LINE__) + "]: " << val << "\n"
#endif
#ifndef perr
#define perr(val) m_cerr << "...[ ERR-" << PROJECT_ID << "]: " << std::string(__FILE__) + ", " + std::string(__func__) + std::string("()[") + std::to_string(__LINE__) + "]: " << val << "\n"
#endif
#ifndef clog
#define clog(val) write_out << "...[ OK-" << PROJECT_ID << "]: " << std::string(__FILE__) + ", " + std::string(__func__) + std::string("()[") + std::to_string(__LINE__) + "]: " << val << "\n"
#endif
#ifndef elog
#define elog(val) write_err << "...[ ERR-" << PROJECT_ID << "]: " << std::string(__FILE__) + ", " + std::string(__func__) + std::string("()[") + std::to_string(__LINE__) + "]: " << val << "\n"
#endif
#endif