LLamaDefaultLogger
Namespace: LLama.Common
The default logger of LLamaSharp. On default it write to console. User methods of LLamaLogger.Default
to change the behavior.
It's more recommended to inherit ILLamaLogger
to cosutomize the behavior.
public sealed class LLamaDefaultLogger : ILLamaLogger
Inheritance Object → LLamaDefaultLogger
Implements ILLamaLogger
Properties
Default
public static LLamaDefaultLogger Default { get; }
Property Value
Methods
EnableConsole()
public LLamaDefaultLogger EnableConsole()
Returns
DisableConsole()
public LLamaDefaultLogger DisableConsole()
Returns
EnableFile(String, FileMode)
public LLamaDefaultLogger EnableFile(string filename, FileMode mode)
Parameters
filename
String
mode
FileMode
Returns
DisableFile(String)
public LLamaDefaultLogger DisableFile(string filename)
Parameters
filename
String
Returns
Log(String, String, LogLevel)
public void Log(string source, string message, LogLevel level)
Parameters
source
String
message
String
level
LogLevel
Info(String)
public void Info(string message)
Parameters
message
String
Warn(String)
public void Warn(string message)
Parameters
message
String
Error(String)
public void Error(string message)
Parameters
message
String