예제 #1
0
        private string GetLogXsltContent()
        {
            string applicationPath = LogConstants.GetSetupDir() + "\\";
            string content         = (string.IsNullOrWhiteSpace(logConfig.FileLogSource.LogXslt)) ?
                                     GetXmlEmbeddedResourceContent("log.xslt") :
                                     GetFileContent(applicationPath + logConfig.FileLogSource.LogXslt);

            return(AddXmlHeader(content));
        }
예제 #2
0
        private static LogConfig GetLogConfig()
        {
            string path = LogConstants.GetSetupDir() + @"\logger.xml";

            return(LogConstants.DeserializeLogConfig(path));
        }