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
The default log pattern includes timestamps, thread IDs, log levels, and messages.
74
-
You can customize the pattern using `ZEL_LOADER_LOG_PATTERN`. Supported pattern flags:
75
-
-`%Y-%m-%d %H:%M:%S.%e` - timestamp with milliseconds (must appear as this full sequence)
76
-
-`%t` - thread id
77
-
-`%P` - process id
78
-
-`%l` - log level
79
-
-`%^` - begin color range (no-op if output is not a TTY)
80
-
-`%$` - end color range
81
-
-`%v` - the actual log message
92
+
Supported pattern tokens:
93
+
-`%Y-%m-%d %H:%M:%S.%e` — timestamp with milliseconds (must appear as this exact sequence)
94
+
-`%t` — thread id
95
+
-`%P` — process id
96
+
-`%l` — log level label
97
+
-`%^` — begin color range (no-op when output is not a TTY)
98
+
-`%$` — end color range
99
+
-`%v` — log message
82
100
83
101
This feature is in early development and is preview only.
84
102
@@ -97,8 +115,10 @@ To print successful API call results, set
97
115
Otherwise, only error results will be printed in the API trace output.
98
116
NOTE: This will become the default behavior in future releases. for now, please set the env var to enable this logging feature.
99
117
100
-
By default logs will be written to the log file, as described above. To print the logs
101
-
to stderr instead, `ZEL_LOADER_LOG_CONSOLE=1` needs to be set.
118
+
By default logs will be written to the log file as described above. To print logs
119
+
to stderr instead of a file, set `ZEL_LOADER_LOG_CONSOLE=1`. Note that when
120
+
`ZEL_LOADER_LOG_CONSOLE=1`, the file path configuration is ignored — output goes
121
+
to the console only.
102
122
103
123
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