程序包 com.sh.javax.log

类 LogFactory

java.lang.Object
com.sh.javax.log.LogFactory

public class LogFactory extends Object
Description: 日志实例化类 Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
  • 字段详细资料

    • LOG_DEFAULT

      public static final String LOG_DEFAULT
    • LOGPATH_DEFAULT

      public static String LOGPATH_DEFAULT
    • LOGFILENAME_DEFAULT

      public static final String LOGFILENAME_DEFAULT
      另请参阅:
    • TO_BACKUP_SIZE

      public static final long TO_BACKUP_SIZE
      另请参阅:
    • logThradStartup

      public static boolean logThradStartup
  • 方法详细资料

    • isShowClassInfo

      public static void isShowClassInfo(boolean show)
      设置是否显示类路径
      参数:
      show - boolean
    • showClassInfo

      public static boolean showClassInfo()
    • setLogPath

      public static void setLogPath(String path)
      设置日志文件路径
      参数:
      path - 路径,以File.separator结尾
    • getFactory

      public static LogFactory getFactory()
    • getInstance

      public Log getInstance(Class<?> clazz)
    • getInstance

      public Log getInstance(String logPath, Class<?> clazz)
      日志记录
      参数:
      logPath - 日志文件,如:shlog.log
      clazz - Class
      返回:
      Log
    • getLog

      public static Log getLog(String key, Class<?> clazz)
    • getLog

      public static Log getLog(Class<?> clazz)
    • main

      public static void main(String[] args)