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
* Initial copy over
* Make it work in core & add impl method
* Cache format tag
* `debug` command: update to modern switch
* logging contexts POC
* Fix max arg count
* Initial review fixes
* fix `name` arg nullability
* Move deprecation to core
* The vision™
* Separate formatted debug
* Remove `Key`, consistentify naming
* Move `ElementTag.format` to core
* It's not necessarily logging specific
* Get context directly from entry
// Script logging contexts provide the format certain commands will use for their texts. Most notably, this includes <@link command debug>.
25
+
// See specific command's documentation for information on which formats they use (for example, the 'debug' command supports a 'debug' format and an 'error' format).
26
+
// The formats are specified under a 'formats' key, and can be either a <@link language Format Script Containers> or a direct format with the same syntax as format scripts.
27
+
// When specifying a direct format, use the format name as the key; When specifying a format script, use '<format>_script' as the key (see example below).
28
+
// <code>
29
+
// my_project_task:
30
+
// type: task
31
+
// formats:
32
+
// # A direct format
33
+
// debug: [MyProject] <[text]>
34
+
// # A separate format script
35
+
// error_script: my_project_error
36
+
// script:
37
+
// - if <util.real_time_since_start.in_hours> > 20:
38
+
// # Will be formatted by the 'my_project_error' format script.
39
+
// - debug error "The system has been running for over 20 hours! Please restart!"
40
+
// - else:
41
+
// # Will print "[MyProject] The system does not need a restart yet."
42
+
// - debug "The system does not need a restart yet."
0 commit comments