@page "/script-log" @* Live script-log tail via SignalR. Subscribes to /hubs/script-log and shows entries from VirtualTagActor / ScriptedAlarmActor script execution. Engine emit lands with F8 + F9. *@ @attribute [Microsoft.AspNetCore.Authorization.Authorize] @rendermode RenderMode.InteractiveServer @using Microsoft.AspNetCore.SignalR.Client @using ZB.MOM.WW.OtOpcUa.AdminUI.Hubs @using ZB.MOM.WW.OtOpcUa.Commons.Messages.Logging @inject NavigationManager Nav @implements IAsyncDisposable
| Time | Level | Script | Context | Message |
|---|---|---|---|---|
| @e.TimestampUtc.ToString("HH:mm:ss.fff") | @e.Level | @e.ScriptId | @if (!string.IsNullOrEmpty(e.VirtualTagId)) { vtag=@e.VirtualTagId } @if (!string.IsNullOrEmpty(e.AlarmId)) { alarm=@e.AlarmId } @if (!string.IsNullOrEmpty(e.EquipmentId)) { eq=@e.EquipmentId } | @e.Message |