|
|
@@ -34,13 +34,6 @@ timeval logging::now() {
|
|
|
return tv;
|
|
|
}
|
|
|
|
|
|
-std::string logging::timestamp() {
|
|
|
- time_t round = std::time(NULL);
|
|
|
- char buf[32];
|
|
|
- std::strftime(buf, sizeof(buf), "%Y%m%dT%H%M%S", std::localtime(&round));
|
|
|
- return buf;
|
|
|
-}
|
|
|
-
|
|
|
namespace logging {
|
|
|
std::ostream & operator<<(std::ostream & os, log_level l) {
|
|
|
return os << std::string(level_header(l));
|