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

            logger.InitLogger(moduleName);
            return(logger);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }