Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static HDefaultLog CreateFileLogger(string moduleName)
        {
            var logger = new HDefaultLog(moduleName);

            logger.InitLogger(moduleName);
            return(logger);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
 public YWLogHelper(string name)
 {
     __Logger = HDefaultLog.CreateFileLogger(name);
 }
Exemplo n.º 7
0
 static YWLogHelper()
 {
     Logger = HDefaultLog.CreateFileLogger("Log");
 }