using System.Diagnostics;
using System.IO;
namespace Awperative;
public static partial class Debugger
{
///
/// Writes the current message to the log file.
///
/// Message to debug
public static void DebugState(string __message) => DebugGeneric(__message, "STA");
///
/// Writes the current message to the log file.
///
/// Message to debug
public static void DebugValue(string __message) => DebugGeneric(__message, "VAL");
///
/// Writes the current message to the log file.
///
/// Message to debug
public static void DebugLog(string __message) => DebugGeneric(__message, "LOG");
///
/// Writes the current message to the log file.
///
/// Message to debug
public static void DebugWarning(string __message) => DebugGeneric(__message, "WAR");
///
/// Writes the current message to the log file.
///
/// Message to debug
public static void DebugError(string __message) => DebugGeneric(__message, "ERR");
///
/// Writes the current message to the log file. With any given call sign.
///
/// Message to debug
/// Message identifier
public static void DebugGeneric(string __message, string __callSign) {
File.AppendAllText(LogFilePath, "\n\n" + __callSign + "- \"" + __message + "\"\n STK-" + new StackTrace());
}
}