Class ServerBuildLogger
- Namespace
- Ando.Server.BuildExecution
- Assembly
- Ando.Server.dll
Build logger that writes to database and streams via SignalR.
public class ServerBuildLogger : IBuildLogger, IMessageLogger, IStepLogger, IWorkflowLogger
- Inheritance
-
ServerBuildLogger
- Implements
- Inherited Members
Constructors
ServerBuildLogger(AndoDbContext, int, IHubContext<BuildLogHub>, CancellationToken)
public ServerBuildLogger(AndoDbContext db, int buildId, IHubContext<BuildLogHub> hubContext, CancellationToken cancellationToken)
Parameters
dbAndoDbContextbuildIdinthubContextIHubContext<BuildLogHub>cancellationTokenCancellationToken
Properties
Verbosity
Current verbosity level. Messages below this level are suppressed.
public LogLevel Verbosity { get; set; }
Property Value
Methods
Debug(string)
Logs a debug message (Detailed verbosity only).
public void Debug(string message)
Parameters
messagestring
Error(string)
Logs an error message (always shown).
public void Error(string message)
Parameters
messagestring
Info(string)
Logs an informational message (Normal+ verbosity).
public void Info(string message)
Parameters
messagestring
LogStep(string, string)
Logs a log step as a single line with the message inline. Format: "▶ [1/5] Info: message"
public void LogStep(string level, string message)
Parameters
Output(string)
Logs raw command output.
public void Output(string message)
Parameters
messagestring
StepCompleted(string, TimeSpan, string?)
Logs that a step completed successfully.
public void StepCompleted(string stepName, TimeSpan duration, string? context = null)
Parameters
StepFailed(string, TimeSpan, string?)
Logs that a step failed.
public void StepFailed(string stepName, TimeSpan duration, string? message = null)
Parameters
StepSkipped(string, string?)
Logs that a step was skipped (e.g., condition not met).
public void StepSkipped(string stepName, string? reason = null)
Parameters
StepStarted(string, string?)
Logs that a step has started executing.
public void StepStarted(string stepName, string? context = null)
Parameters
Warning(string)
Logs a warning message (Minimal+ verbosity).
public void Warning(string message)
Parameters
messagestring
WorkflowCompleted(string, string?, TimeSpan, int, int)
Logs that a workflow has completed.
public void WorkflowCompleted(string workflowName, string? scriptPath, TimeSpan duration, int stepsRun, int stepsFailed)
Parameters
WorkflowStarted(string, string?, int)
Logs that a workflow has started.
public void WorkflowStarted(string workflowName, string? scriptPath = null, int totalSteps = 0)