45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace EpicGames.BuildGraph
|
|
{
|
|
/// <summary>
|
|
/// Diagnostic message from the graph script. These messages are parsed at startup, then culled along with the rest of the graph nodes before output. Doing so
|
|
/// allows errors and warnings which are only output if a node is part of the graph being executed.
|
|
/// </summary>
|
|
public class BgDiagnosticDef
|
|
{
|
|
/// <summary>
|
|
/// File containing the diagnostic
|
|
/// </summary>
|
|
public string File { get; }
|
|
|
|
/// <summary>
|
|
/// Line number containing the diagnostic
|
|
/// </summary>
|
|
public int Line { get; }
|
|
|
|
/// <summary>
|
|
/// The diagnostic event type
|
|
/// </summary>
|
|
public LogLevel Level { get; }
|
|
|
|
/// <summary>
|
|
/// The message to display
|
|
/// </summary>
|
|
public string Message { get; }
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
public BgDiagnosticDef(string file, int line, LogLevel level, string message)
|
|
{
|
|
File = file;
|
|
Line = line;
|
|
Level = level;
|
|
Message = message;
|
|
}
|
|
}
|
|
}
|