Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.BuildGraph/BgDiagnosticDef.cs
Ben Marsh 4ac8d339f5 Horde: More static analyzer fixes.
[CL 27857368 by Ben Marsh in ue5-main branch]
2023-09-13 18:45:06 -04:00

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;
}
}
}