English | 中文
## Usage Example
init log agents in your project's main scene
```csharp
var fileLogAgent = new FileLogAgent(); // File Logging
fileLogAgent.Cleanup(2); // Keep 2 log files, delete the rest
GLog.AddAgent(fileLogAgent);
if (EngineDebugger.IsActive())
{
var debuggerLogAgent = new DebuggerLogAgent(); // Output log information to Godot's debugger panel
GLog.AddAgent(debuggerLogAgent);
}
var godotLogAgent = new GodotLogAgent(); // Output log information to Godot's output panel
GLog.AddAgent(godotLogAgent);
var builtinLogAgent = new BuiltinLogAgent(); // Built-in Logging
GLog.AddAgent(builtinLogAgent);
GLog.Info("info message", "Sample");
GLog.Warn("warn message", "Sample");
GLog.Error("error message", "Sample");
GLog.Exception(new Exception("exception message"), "Sample");
```