Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var cirl = new RealtimeLogger("https://localhost:44309/log", "123abc", Guid.Parse("787281ed-75cf-44e0-bad1-795c5a9d2336"));

            cirl.Log(LogSeverity.Critical, "testing").Wait();
        }
        public void AppendLogsToForcePrune()
        {
            SetVariable("RealtimeLogger.LogHistoryLimit", "5");

            Assert.Equal(5, RealtimeLogger.LogHistoryLimit);

            for (int i = 0; i < 10; i++)
            {
                RealtimeLogger.AppendLog("test", "test", "test", "test", "test");
            }

            Assert.Equal(5, RealtimeLogger.LogHistory.Count);
        }
 public void AppendLog(string threadID, string dateTime, string logLevel, string logger, string message)
 {
     RealtimeLogger.AppendLog(threadID, dateTime, logLevel, logger, message);
 }
 public void AppendLogSubscription()
 {
     RealtimeLogger.LogAppended += EventHandler;
     RealtimeLogger.AppendLog("2", "8/12/2016 10:31", "Debug", "Test", "Hello World!");
 }