12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace NetCore31BACNetTransfor
- {
- public class LoggerImpl : ILogger
- {
- private static LoggerImpl instance;
- public static LoggerImpl Instance()
- {
- if (LoggerImpl.instance == null)
- {
- LoggerImpl.instance = new LoggerImpl();
- }
- return LoggerImpl.instance;
- }
- private LoggerImpl()
- {
- }
- public void Debug(string message)
- {
- Console.WriteLine("Debug\t" + message);
- }
- public void Info(string message)
- {
- Console.WriteLine("Info\t" + message);
- }
- public void Warn(string message)
- {
- Console.WriteLine("Warn\t" + message);
- }
- public void Error(string message)
- {
- Console.WriteLine("Error\t" + message);
- }
- public void Fatal(string message)
- {
- Console.WriteLine("Fatal\t" + message);
- }
- }
- }
|