workerd 1.20250910.0 → 1.20250912.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/workerd.capnp CHANGED
@@ -90,6 +90,25 @@ struct Config {
90
90
  # When false, logs use the traditional human-readable format.
91
91
  # This affects the format of logs from KJ_LOG and exception reporting as well as js logs.
92
92
  # This won't work for logs coming from service worker syntax workers with the old module registry.
93
+ # Note: This field is obsolete and deprecated. Use the logging struct instead.
94
+
95
+ logging @6 : LoggingOptions;
96
+ # Console and Stdio logging configuration options.
97
+ }
98
+
99
+ struct LoggingOptions {
100
+ structuredLogging @0 :Bool = false;
101
+ # Override of top-level structured logging (only when true).
102
+ # If true, logs will be emitted as JSON for structured logging.
103
+ # When false, logs use the traditional human-readable format.
104
+ # This affects the format of logs from KJ_LOG and exception reporting as well as js logs.
105
+ # This won't work for logs coming from service worker syntax workers with the old module registry.
106
+
107
+ stdoutPrefix @1 :Text;
108
+ # Set a custom prefix for process.stdout. Defaults to "stdout: ".
109
+
110
+ stderrPrefix @2 :Text;
111
+ # Set a custom prefix for process.stderr. Defaults to "stderr: ".
93
112
  }
94
113
 
95
114
  # ========================================================================================