Example #1
0
        public static HDefaultLog CreateFileLogger(string rootPath, string appcode, string moduleName)
        {
            var logger = new HDefaultLog(rootPath, appcode, moduleName, false);

            logger.InitLogger(moduleName);
            return(logger);
        }
Example #2
0
        public static HDefaultLog CreateFileLogger(string moduleName)
        {
            var logger = new HDefaultLog(moduleName);

            logger.InitLogger(moduleName);
            return(logger);
        }
Example #3
0
        public static HDefaultLog CreateDBLogger(string rootPath, string appcode, string moduleName, string tableName, string Connectionstring)
        {
            var logger = new HDefaultLog(rootPath, appcode, moduleName, false, true);

            logger.LogTableName       = tableName;
            logger.DbConnectionstring = Connectionstring;
            logger.InitLogger(moduleName);
            return(logger);
        }
Example #4
0
        public static HDefaultLog CreateFileDBLogger(string appcode, string moduleName, string tableName, string Connectionstring)
        {
            var logger = new HDefaultLog(appcode, moduleName, true);

            logger.LogTableName       = tableName;
            logger.DbConnectionstring = Connectionstring;
            logger.IncludeFile        = true;
            logger.InitLogger(moduleName);
            return(logger);
        }
Example #5
0
        public static HDefaultLog CreateFileDBLoggerwithPath(string rootPath, string moduleName, string tableName, string Connectionstring)
        {
            var logger = new HDefaultLog(moduleName, true);

            logger.LogTableName       = tableName;
            logger.DbConnectionstring = Connectionstring;
            logger.RootPath           = rootPath;
            logger.IncludeFile        = true;
            logger.InitLogger(moduleName);
            return(logger);
        }
Example #6
0
 public YWLogHelper(string name)
 {
     __Logger = HDefaultLog.CreateFileLogger(name);
 }
Example #7
0
 static YWLogHelper()
 {
     Logger = HDefaultLog.CreateFileLogger("Log");
 }