9 #ifndef PDG_LOG_UTILS_H
10 #define PDG_LOG_UTILS_H
198 eTransferDebugHandler
207 static fpreal currentTime();
212 {
return theLogVerbosity; }
217 theLogVerbosity = verbosity;
218 theLogHasCustomVerbosity =
true;
225 static bool configureFromEnvironment(
bool force);
228 static void enableAll();
231 static void disableAll();
235 template <LogType
Type,
typename Level,
typename... Args>
241 if (
int(level) > theLogLevels[
Type])
248 stdout, log.
buffer(), currentTime());
252 template <
typename Level>
255 return static_cast<Level>(
260 template <
typename Level>
263 theLogLevels[
type] =
int(level);
264 theLogHasCustomLevels =
true;
268 static void workItemLog(
283 static void schedulerLog(
284 SchedulerDebug
level,
292 static void schedulerLog(
293 SchedulerDebug
level,
300 static void serviceLog(
314 static void writeLog(
319 static void lockedLog(
324 friend class pdg_UniversalLogWorkItemStatusSource;
326 static const fpreal theStartTime;
327 static const fpreal theSystemStartTime;
329 static int theLogLevels[eLogTypeCount];
330 static int theLogVerbosity;
331 static bool theLogHasCustomLevels;
332 static bool theLogHasCustomVerbosity;
exint PDG_WorkItemID
Type defs for unique work item IDs.
GLuint GLsizei const GLchar * message
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
Log node status updates, e.g. generated or cooked.
static void setVerbosity(int verbosity)
Sets the verbosity.
Log failed, successful, and skipped transfers.
Node status/debug logging.
SYS_FORCE_INLINE const char * buffer() const
Work item status/debug logging.
Log messages for events that occur at the scheduler level.
PDGT_TypeErrorLevel
Error level typedef.
static void debugLog(Level level, const char *fmt, Args &&...args)
Scheduler status/debug logging.
Type registration errors and warnings.
Log node status + errors.
File transer debug logging.
GLsizei GLsizei GLchar * source
Cache and handler logging.
Log messages for when a service client is acquired/released.
size_t format(const char *fmt, const Args &...args)
SIM_API const UT_StringHolder force
Log cache misses + hits + cache id changes.
static void setLogLevel(LogType type, Level level)
Sets the log level for the specified log type.
No file transfer debug logging.
Log only failed file transfers.
**If you just want to fire and args
Log node status + errors + warnings.
static int verbosity()
Returns the current verbosity.
Service client status/debug logging.
OIIO_FORCEINLINE T log(const T &v)
Expression evaluation logging.
static Level logLevel(LogType type)
Returns the log level for the specified log type.
Log all attribute reference evaluations.
Work item status updates for scheduled work items.