mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Implement log to file logger (#1494)
* Implement log to file Logger moved to it's own namespace * Add lock to log file
This commit is contained in:
parent
62c985376e
commit
240468ad22
11 changed files with 306 additions and 144 deletions
36
MinecraftClient/Logger/ILogger.cs
Normal file
36
MinecraftClient/Logger/ILogger.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MinecraftClient.Logger
|
||||
{
|
||||
public interface ILogger
|
||||
{
|
||||
bool DebugEnabled { get; set; }
|
||||
bool WarnEnabled { get; set; }
|
||||
bool InfoEnabled { get; set; }
|
||||
bool ErrorEnabled { get; set; }
|
||||
bool ChatEnabled { get; set; }
|
||||
|
||||
void Info(string msg);
|
||||
void Info(string msg, params object[] args);
|
||||
void Info(object msg);
|
||||
|
||||
void Debug(string msg);
|
||||
void Debug(string msg, params object[] args);
|
||||
void Debug(object msg);
|
||||
|
||||
void Warn(string msg);
|
||||
void Warn(string msg, params object[] args);
|
||||
void Warn(object msg);
|
||||
|
||||
void Error(string msg);
|
||||
void Error(string msg, params object[] args);
|
||||
void Error(object msg);
|
||||
|
||||
void Chat(string msg);
|
||||
void Chat(string msg, params object[] args);
|
||||
void Chat(object msg);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue