Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.BuildGraph/BgDiagnosticDef.cs
Ben Marsh bb0e506aac BuildGraph: Rename classes to reduce boilerplate when writing scripts.
* Expression classes (nodes, aggregates, graphs, etc...) are now called BgNode, BgAggregate, etc...
* Evaluated and instantiated objects used by BuildGraph internals are now called BgNodeDef, BgAggregateDef, etc...

#preflight 62b6374161016695a6545b08

[CL 20818158 by Ben Marsh in ue5-main branch]
2022-06-24 18:30:51 -04:00

46 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using EpicGames.Core;
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;
}
}
}