MCPcopy Create free account
hub / github.com/ModelEngine-Group/flexai / Logging

Function Logging

GPU-Virtual-Service/gpu-remoting/include/define.h:326–341  ·  view source on GitHub ↗

* @brief a simple logger * * @param logger the logger name * @param fmt the input message */

Source from the content-addressed store, hash-verified

324 * @param fmt the input message
325 */
326 inline void Logging(int loglevel, const char* logger, const char* fmt, ...) {
327 if (LOG_CURR & loglevel) {
328 using namespace std;
329 char buf[BUFSIZ] = {'\0'};
330 va_list ap;
331 va_start(ap, fmt);
332 vsnprintf(buf, BUFSIZ, fmt, ap);
333 va_end(ap);
334 time_t t = std::time(nullptr);
335 stringstream output;
336 output << std::put_time(std::localtime(&t), "%F %T ")
337 << "<" << logger << ">: " << buf;
338 cerr << output.str();
339 return ;
340 }
341 }
342
343 inline void Logging(const char* logger, const char* fmt, ...) {
344 if (LOG_CURR & LOG_DEBUG) {

Callers 15

CheckpointingMethod · 0.85
ReplayMethod · 0.85
UpdateReqIOVListMethod · 0.85
get_nvml_handleFunction · 0.85
get_cuda_handleFunction · 0.85
__cudaRegisterFatBinaryFunction · 0.85
__cudaRegisterVarFunction · 0.85
__cudaRegisterFunctionFunction · 0.85
cudaLaunchKernelFunction · 0.85
cudaMallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected