Llm/LlmLog.cs

Simple static logging helper for the LLM subsystem. Exposes Info, Trace (conditional on TraceEnabled), Warning and Error methods that forward formatted messages to a global Log class with an "LLM:<category>" prefix.

namespace LlmPoc.Llm;

public static class LlmLog
{
	public static bool TraceEnabled { get; set; }

	public static void Info( string category, string message )
	{
		Log.Info( $"[LLM:{category}] {message}" );
	}

	public static void Trace( string category, string message )
	{
		if ( TraceEnabled )
		{
			Log.Info( $"[LLM:{category}] {message}" );
		}
	}

	public static void Warning( string category, string message )
	{
		Log.Warning( $"[LLM:{category}] {message}" );
	}

	public static void Error( string message )
	{
		Log.Error( $"[LLM:ERROR] {message}" );
	}
}