SweetLib/SweetLib.Demo.Console/Program.cs

34 lines
859 B
C#
Raw Normal View History

2017-04-12 17:44:02 +02:00
using System;
using System.Collections.Generic;
2017-04-16 18:07:30 +02:00
using System.IO;
2017-04-12 17:44:02 +02:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2017-04-16 18:07:30 +02:00
using SweetLib.Classes.Storer;
2017-04-12 17:44:02 +02:00
using SweetLib.Utils.Logger;
2017-04-16 18:07:30 +02:00
using SweetLib.Utils.Logger.Message;
2017-04-12 17:44:02 +02:00
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
}
}
}