com.h3c.util

## Class LogUtils

- java.lang.Object
- - com.h3c.util.LogUtils

-     public final class LogUtils
      extends Object

  Useful Logging utilities.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LogUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `configureJdkLogging(Level level)` Setup the JDK root and global handlers to use our formatter and sets the level for the handlers to the passed in level.
    `static void` | `configureJdkLoggingFromProperty()` Setup the JDK root and global handlers to use our formatter and sets the level for the handlers based on the value of the `JDK_LOG_LEVEL_PROP_KEY` property.
    `static String` | `getJdkLogState()` Returns a multi-line string representing the current state of the JDK logger (loggers, handlers and formatters).

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### LogUtils

          public LogUtils()

  - ### Method Detail

    - #### configureJdkLogging

          public static void configureJdkLogging(Level level)

      Setup the JDK root and global handlers to use our formatter and sets the level for the handlers to the passed in level.
      Parameters:
        `level` - log level

    - #### configureJdkLoggingFromProperty

          public static void configureJdkLoggingFromProperty()

      Setup the JDK root and global handlers to use our formatter and sets the level for the handlers based on the value of the `JDK_LOG_LEVEL_PROP_KEY` property.

    - #### getJdkLogState

          public static String getJdkLogState()

      Returns a multi-line string representing the current state of the JDK logger (loggers, handlers and formatters).
      Returns:
        string representation of logger state

Copyright © 2014. All Rights Reserved.