fix(central-ui): Log on the inbound editor diagnostics host; sandbox Log delegates to Instance (Task 7 review)
This commit is contained in:
@@ -28,6 +28,14 @@ public class InboundScriptHost
|
||||
/// </summary>
|
||||
public DatabaseAccessor Database { get; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Leveled per-run logging. Editor mirror of
|
||||
/// ZB.MOM.WW.ScadaBridge.InboundAPI.InboundScriptLogger (step logs design 2026-09-09 D4);
|
||||
/// shares <see cref="SandboxLog"/> with the Test Run sandbox because only the signatures
|
||||
/// matter here — analysis never invokes it.
|
||||
/// </summary>
|
||||
public SandboxLog Log { get; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// The cancellation token for the operation.
|
||||
/// </summary>
|
||||
|
||||
@@ -91,9 +91,11 @@ public class SandboxScriptHost
|
||||
/// <summary>
|
||||
/// Sandbox mirror of the site runtime's <c>Log</c> global (step logs design 2026-09-09 D4).
|
||||
/// Present so a script that logs BINDS in the Test Run editor; lines go to the Test Run
|
||||
/// console pane and are never audited.
|
||||
/// console pane and are never audited. Delegates to <see cref="SandboxInstanceContext.Log"/>
|
||||
/// exactly as the runtime's <c>ScriptGlobals.Log => Instance.Log</c> does, so
|
||||
/// <c>Log</c> and <c>Instance.Log</c> are the same object here too.
|
||||
/// </summary>
|
||||
public SandboxLog Log { get; } = new();
|
||||
public SandboxLog Log => Instance.Log;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user