com.obs.services

## 类 LogConfigurator

- java.lang.Object
- - com.obs.services.LogConfigurator

-     public class LogConfigurator
      extends Object

  Log configuration class that uses the standard JDK log library

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static Level` | `DEBUG`
    `static Level` | `ERROR`
    `static Level` | `INFO`
    `static Level` | `OFF`
    `static Level` | `TRACE`
    `static Level` | `WARN`

  - ### 构造器概要

    构造器
    构造器和说明
    `LogConfigurator()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected static void` | `disableAccessLog()`
    `protected static void` | `disableLog()` Disable SDK logging.
    `static void` | `enableAccessLog()`
    `static void` | `enableLog()` Enable SDK logging.
    `static void` | `setLogFileDir(String dir)` Set a directory for saving log files.
    `static void` | `setLogFileRolloverCount(int count)` Set the number of retained log files.
    `static void` | `setLogFileSize(int fileSize)` Set the log file size (in bytes).
    `static void` | `setLogLevel(Level level)` Set the log level.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### OFF

          public static final Level OFF

    - #### TRACE

          public static final Level TRACE

    - #### DEBUG

          public static final Level DEBUG

    - #### INFO

          public static final Level INFO

    - #### WARN

          public static final Level WARN

    - #### ERROR

          public static final Level ERROR

  - ### 构造器详细资料

    - #### LogConfigurator

          public LogConfigurator()

  - ### 方法详细资料

    - #### enableLog

          public static void enableLog()

      Enable SDK logging.

    - #### disableLog

          protected static void disableLog()

      Disable SDK logging.

    - #### enableAccessLog

          public static void enableAccessLog()

    - #### disableAccessLog

          protected static void disableAccessLog()

    - #### setLogLevel

          public static void setLogLevel(Level level)

      Set the log level.
      参数:
        `level` - Log level

    - #### setLogFileRolloverCount

          public static void setLogFileRolloverCount(int count)

      Set the number of retained log files.
      参数:
        `count` - Number of retained log files

    - #### setLogFileSize

          public static void setLogFileSize(int fileSize)

      Set the log file size (in bytes).
      参数:
        `fileSize` - Log file size

    - #### setLogFileDir

          public static void setLogFileDir(String dir)

      Set a directory for saving log files.
      参数:
        `dir` - Directory for saving log files

Copyright © 2021. All rights reserved.