52 lines
943 B
C#
52 lines
943 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using skyscraper8.Skyscraper.Plugins;
|
|
|
|
namespace DomainObjects
|
|
{
|
|
internal class Logger
|
|
{
|
|
private static Logger _instance;
|
|
public static Logger Instance
|
|
{
|
|
get
|
|
{
|
|
if(_instance == null)
|
|
_instance = new Logger();
|
|
return _instance;
|
|
}
|
|
}
|
|
|
|
private class EPGCollector
|
|
{
|
|
|
|
}
|
|
|
|
private PluginLogger _realLogger;
|
|
|
|
private Logger()
|
|
{
|
|
_realLogger = PluginLogManager.GetLogger(typeof(EPGCollector));
|
|
}
|
|
|
|
public void Write(string s)
|
|
{
|
|
_realLogger.Log(PluginLogLevel.All, s);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Write a log separator line.
|
|
/// </summary>
|
|
/// <param name="identity">The text of the separator.</param>
|
|
public void WriteSeparator(string identity)
|
|
{
|
|
Write("");
|
|
Write("============================ " + identity + " ==============================");
|
|
Write("");
|
|
}
|
|
}
|
|
}
|