SweetLib/SweetLib.Demo.Console/Program.cs

28 lines
706 B
C#
Raw Normal View History

2017-10-26 19:05:06 +02:00
using System.IO;
2017-04-16 18:07:30 +02:00
using SweetLib.Classes.Storer;
2017-04-12 17:44:02 +02:00
using SweetLib.Utils.Logger;
namespace SweetLib.Demo.Console
{
class Program
{
static void Main(string[] args)
{
//Logger.GlobalLogLevel |= LogLevel.Debug | LogLevel.Trace;
Logger.GlobalLogLevel=LogLevel.All;
Logger.Trace("Trace!");
Logger.Debug("Debug");
Logger.Info("Hallo Welt");
Logger.Warn("WARN!");
Logger.Error("Error :(");
System.Console.ReadLine();
2017-04-16 18:07:30 +02:00
var f = Path.GetTempFileName();
var ini = new IniFileStorer(f);
System.Console.WriteLine(ini.ReadString("sec","key"));
2017-04-12 17:44:02 +02:00
}
}
}