Example #1
0
        public void CommitTest()
        {
            var destination = new RemoteDestination()
            {
                AutoCommit = false,
                Level = (int)EventSeverity.Verbose,
                ServiceUrl = "http://md.xsolon.net/logs/slog.ashx"
            };

            using (var logger = new LoggerClass("TraceDestinationTests"))
            {
                logger.NotifyEvent += (e) =>
                {
                    e.Props["DomainKey"] = "STSv2";
                };

                logger.Destinations.Add(destination);

                logger.NotifyInformation("Information");

                logger.Notify((int)EventSeverity.Verbose - 1, () => { return "Not be logged"; });

                int count = destination.LogList.Count;

                Assert.AreEqual(1, count);
            }
        }
Example #2
0
        public override object Clone()
        {
            var res = new RemoteDestination
            {
                AutoCommit = AutoCommit,
                Level = Level,
                //LogList = this.LogList.ToList(), PreProcessEntries = this.PreProcessEntries,
                ServiceUrl = ServiceUrl
            };

            return res;
        }
Example #3
0
        public override object Clone()
        {
            var res = new RemoteDestination
            {
                AutoCommit = AutoCommit,
                Level      = Level,
                //LogList = this.LogList.ToList(), PreProcessEntries = this.PreProcessEntries,
                ServiceUrl = ServiceUrl
            };

            return(res);
        }