# 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. ```csharp public sealed class LLamaDefaultLogger : ILLamaLogger ``` Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [LLamaDefaultLogger](./llama.common.llamadefaultlogger.md)
Implements [ILLamaLogger](./llama.common.illamalogger.md) ## Properties ### **Default** ```csharp public static LLamaDefaultLogger Default { get; } ``` #### Property Value [LLamaDefaultLogger](./llama.common.llamadefaultlogger.md)
## Methods ### **EnableConsole()** ```csharp public LLamaDefaultLogger EnableConsole() ``` #### Returns [LLamaDefaultLogger](./llama.common.llamadefaultlogger.md)
### **DisableConsole()** ```csharp public LLamaDefaultLogger DisableConsole() ``` #### Returns [LLamaDefaultLogger](./llama.common.llamadefaultlogger.md)
### **EnableFile(String, FileMode)** ```csharp public LLamaDefaultLogger EnableFile(string filename, FileMode mode) ``` #### Parameters `filename` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`mode` [FileMode](https://docs.microsoft.com/en-us/dotnet/api/system.io.filemode)
#### Returns [LLamaDefaultLogger](./llama.common.llamadefaultlogger.md)
### **DisableFile(String)** ```csharp public LLamaDefaultLogger DisableFile(string filename) ``` #### Parameters `filename` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
#### Returns [LLamaDefaultLogger](./llama.common.llamadefaultlogger.md)
### **Log(String, String, LogLevel)** ```csharp public void Log(string source, string message, LogLevel level) ``` #### Parameters `source` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`message` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`level` [LogLevel](./llama.common.illamalogger.loglevel.md)
### **Info(String)** ```csharp public void Info(string message) ``` #### Parameters `message` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **Warn(String)** ```csharp public void Warn(string message) ``` #### Parameters `message` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **Error(String)** ```csharp public void Error(string message) ``` #### Parameters `message` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)