PSMoveSteamVRBridge
logger.h
1 //========= Copyright Valve Corporation ============//
2 #pragma once
3 
4 #include <string>
5 #include <openvr_driver.h>
6 
7 namespace steamvrbridge
8 {
9  class Logger {
10  public:
11  static bool InitDriverLog(vr::IVRDriverLog *pDriverLog);
12  static void CleanupDriverLog();
13  static void DriverLogVarArgs(const char *pMsgFormat, va_list args, std::string logLevel);
14  static void Info(const char *pchFormat, ...);
15  static void Debug(const char *pchFormat, ...);
16  static void Warn(const char *pchFormat, ...);
17  static void Error(const char *pchFormat, ...);
18  };
19 }
Provides printf-style line logging via the vr::IVRDriverLog interface provided by SteamVR during init...
Definition: config.cpp:18
Definition: logger.h:9
static void Warn(const char *pchFormat,...)
Logs a printf-style warn line logging.
Definition: logger.cpp:59
static void Info(const char *pchFormat,...)
Logs a printf-style info line logging.
Definition: logger.cpp:50
static void Debug(const char *pchFormat,...)
Logs a printf-style debug line logging.
Definition: logger.cpp:77
static void Error(const char *pchFormat,...)
Logs a printf-style error line logging.
Definition: logger.cpp:68