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
feature: Improve API Call Tracing and add ults (#425)
- Updated API Call Tracing to dereference [out] parameters when the api
call succeeds for tracking output structures.
- Updated spdlog trace to output the thread id in the log string and
have the log string to be configurable.
- Add ULTs for the validation layer api tracing to ensure stability.
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
Logging is disabled by default but when enabled the default level is 'warn'.
69
70
The default log file is 'ze_loader.log' in '.oneapi_logs' in the current
70
71
user's home directory.
71
72
73
+
The default log pattern includes timestamps, thread IDs, log levels, and messages.
74
+
You can customize the pattern using `ZEL_LOADER_LOG_PATTERN`. Common pattern flags:
75
+
-`%t` - thread id
76
+
-`%Y-%m-%d %H:%M:%S.%e` - timestamp with milliseconds
77
+
-`%l` - log level
78
+
-`%v` - the actual log message
79
+
See spdlog documentation for more pattern options.
80
+
72
81
This feature is in early development and is preview only.
73
82
74
83
# Logging API calls
@@ -84,29 +93,28 @@ validation layer is enabled. Following variables need to be set to enable API lo
84
93
By default logs will be written to the log file, as described above. To print the logs
85
94
to stderr instead, `ZEL_LOADER_LOG_CONSOLE=1` needs to be set.
86
95
87
-
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 logger name and log level. Example output:
96
+
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