MCPcopy Create free account
hub / github.com/cinder/Cinder / getDailyLogString

Function getDailyLogString

src/cinder/Log.cpp:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81const std::string getDailyLogString( const std::string& format )
82{
83 time_t timeSinceEpoch = time( NULL );
84 struct tm *now = localtime( &timeSinceEpoch );
85
86 char result[100];
87 strftime( result, sizeof( result ), format.c_str(), now );
88
89 return result;
90}
91
92} // anonymous namespace
93

Callers 2

LoggerFileRotatingMethod · 0.85
writeMethod · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected