Initial Commit
This commit is contained in:
42
TomcatServer/MSLMobileMini/Logger.cs
Normal file
42
TomcatServer/MSLMobileMini/Logger.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using Yaulw.File;
|
||||
using Yaulw.Other;
|
||||
using Yaulw.Assembly;
|
||||
|
||||
namespace MSLMobile
|
||||
{
|
||||
//public static class Logger
|
||||
//{
|
||||
// // Default Log File Settings
|
||||
// internal static readonly string LOG_NAME_APPMAIN = "SetupLog";
|
||||
// internal const int LOG_FILE_FILE_SIZE_IN_MB = 2;
|
||||
// internal const int LOG_FILE_NUM_OF_BACKUPS = 4;
|
||||
// internal static string APP_LOG_FILENAMEANDPATH = AssemblyW.SpecializedAssemblyInfo.GetAssemblyPath(AssemblyW.AssemblyST.Entry) + "\\" + "Setup.log";
|
||||
|
||||
// // Application's Main Log Object
|
||||
// internal static Logging Log = null;
|
||||
|
||||
// // Log Settings
|
||||
// private static Logging_Configuration CreateDefaultLoggingConfiguration(string LogFileNameNPath, Logging_Detail Detail, bool UseExclusiveFileLock)
|
||||
// {
|
||||
// Logging_Configuration config = new Logging_Configuration();
|
||||
// config.LogFileNameNPath = LogFileNameNPath;
|
||||
// config.maxFileSizeInMB = LOG_FILE_FILE_SIZE_IN_MB;
|
||||
// config.numOfBackupLogFiles = LOG_FILE_NUM_OF_BACKUPS;
|
||||
// config.Detail = Detail;
|
||||
// config.UseExclusiveFileLock = UseExclusiveFileLock;
|
||||
// config.Log4NetDetailPatternLayout = "%level - %message%newline";
|
||||
// return config;
|
||||
// }
|
||||
|
||||
// static Logger()
|
||||
// {
|
||||
// Log = Logging.AddGlobalLoggerConfiguration(LOG_NAME_APPMAIN, CreateDefaultLoggingConfiguration(APP_LOG_FILENAMEANDPATH, Logging_Detail.INFO, false));
|
||||
// }
|
||||
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user