You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove spdlog files from repo
* Added logging enablement modes to support =2 for enhanced output
ZE_ENABLE_LOADER_DEBUG_TRACE=1 retains behavior
ZE_ENABLE_LOADER_DEBUG_TRACE=2 enables enhanced output
The same for ZEL_ENABLE_LOADER_LOGGING=1 and =2
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
This feature is in early development and is preview only.
97
+
Supported pattern tokens:
98
+
-`%Y-%m-%d %H:%M:%S.%e` — timestamp with milliseconds (must appear as this exact sequence)
99
+
-`%t` — thread id
100
+
-`%P` — process id
101
+
-`%l` — log level label
102
+
-`%^` — begin color range (no-op when output is not a TTY)
103
+
-`%$` — end color range
104
+
-`%v` — log message
82
105
83
106
# Logging API calls
84
107
The Level Zero Loader will log all API calls whenever logging level is set to `trace` and
@@ -95,8 +118,10 @@ To print successful API call results, set
95
118
Otherwise, only error results will be printed in the API trace output.
96
119
NOTE: This will become the default behavior in future releases. for now, please set the env var to enable this logging feature.
97
120
98
-
By default logs will be written to the log file, as described above. To print the logs
99
-
to stderr instead, `ZEL_LOADER_LOG_CONSOLE=1` needs to be set.
121
+
By default logs will be written to the log file as described above. To print logs
122
+
to stderr instead of a file, set `ZEL_LOADER_LOG_CONSOLE=1`. Note that when
123
+
`ZEL_LOADER_LOG_CONSOLE=1`, the file path configuration is ignored — output goes
124
+
to the console only.
100
125
101
126
The API logging output format includes both function entry and exit information, showing parameter names on entry and parameter values with the result code on exit. Each log entry is timestamped and includes the thread-id, logger name, log level. Example output:
0 commit comments