Object LoggerToolkit

  • All Implemented Interfaces:

    
    public class LoggerToolkit
    
                        

    日志工具类

    Author:

    Toutatis_Gc

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Logger getLogger(String name) 获取以名称为实例的日志实例
      final static Logger getLogger(Class<?> clazz) 获取以类名为实例的日志实例
      final static String infoWithModule(String module, String message) 返回格式化日志信息 一般模块目录下都有一个VoidModuleInfo类,其中包含了MODULE_NAME字段模块名称
      final static String infoWithModule(String module, String subModule, String message) 返回格式化日志信息 一般模块目录下都有一个VoidModuleInfo类,其中包含了MODULE_NAME字段模块名称
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getLogger

         final static Logger getLogger(String name)

        获取以名称为实例的日志实例

      • getLogger

         final static Logger getLogger(Class<?> clazz)

        获取以类名为实例的日志实例

      • infoWithModule

         final static String infoWithModule(String module, String message)

        返回格式化日志信息 一般模块目录下都有一个VoidModuleInfo类,其中包含了MODULE_NAME字段模块名称

        Parameters:
        module - 模块名称
        message - 日志消息
      • infoWithModule

         final static String infoWithModule(String module, String subModule, String message)

        返回格式化日志信息 一般模块目录下都有一个VoidModuleInfo类,其中包含了MODULE_NAME字段模块名称

        Parameters:
        module - 模块名称
        subModule - 子模块(由各个文件夹下的功能简称作为子模块名称,不强制定义)
        message - 日志消息