SweetLib/SweetLib.Demo.Console/Program.cs
Serraniel e13c5006c8 Doc Texts
Fixed Version number
2017-04-16 18:07:30 +02:00

34 lines
859 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SweetLib.Classes.Storer;
using SweetLib.Utils.Logger;
using SweetLib.Utils.Logger.Message;
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();
var f = Path.GetTempFileName();
var ini = new IniFileStorer(f);
System.Console.WriteLine(ini.ReadString("sec","key"));
}
}
}