static LogSamples() { StringAppender = new global::log4net.Tests.Appender.StringAppender(); hierarchy_string_appender = (global::log4net.Repository.Hierarchy.Hierarchy) global::log4net.LogManager.GetRepository(); hierarchy_string_appender.Root.AddAppender(StringAppender); LogForStringAppender = global::log4net.LogManager.GetLogger("LogForStringAppender"); InitFileLogs(); return; }
static LogSamples() { StringAppender = new global::log4net.Tests.Appender.StringAppender(); hierarchy_string_appender = (global::log4net.Repository.Hierarchy.Hierarchy) global::log4net.LogManager.GetRepository(); hierarchy_string_appender.Root.AddAppender(StringAppender); LogForStringAppender = global::log4net.LogManager.GetLogger("LogForStringAppender"); InitFileLogs(); return; }