Table of Contents

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

db AndoDbContext
buildId int
hubContext IHubContext<BuildLogHub>
cancellationToken CancellationToken

Properties

Verbosity

Current verbosity level. Messages below this level are suppressed.

public LogLevel Verbosity { get; set; }

Property Value

LogLevel

Methods

Debug(string)

Logs a debug message (Detailed verbosity only).

public void Debug(string message)

Parameters

message string

Error(string)

Logs an error message (always shown).

public void Error(string message)

Parameters

message string

Info(string)

Logs an informational message (Normal+ verbosity).

public void Info(string message)

Parameters

message string

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

level string

Log level (Info, Warning, Error, Debug).

message string

The message to display.

Output(string)

Logs raw command output.

public void Output(string message)

Parameters

message string

StepCompleted(string, TimeSpan, string?)

Logs that a step completed successfully.

public void StepCompleted(string stepName, TimeSpan duration, string? context = null)

Parameters

stepName string
duration TimeSpan
context string

StepFailed(string, TimeSpan, string?)

Logs that a step failed.

public void StepFailed(string stepName, TimeSpan duration, string? message = null)

Parameters

stepName string
duration TimeSpan
message string

StepSkipped(string, string?)

Logs that a step was skipped (e.g., condition not met).

public void StepSkipped(string stepName, string? reason = null)

Parameters

stepName string
reason string

StepStarted(string, string?)

Logs that a step has started executing.

public void StepStarted(string stepName, string? context = null)

Parameters

stepName string
context string

Warning(string)

Logs a warning message (Minimal+ verbosity).

public void Warning(string message)

Parameters

message string

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

workflowName string
scriptPath string
duration TimeSpan
stepsRun int
stepsFailed int

WorkflowStarted(string, string?, int)

Logs that a workflow has started.

public void WorkflowStarted(string workflowName, string? scriptPath = null, int totalSteps = 0)

Parameters

workflowName string
scriptPath string
totalSteps int