mil.dod.th.ose.logging/src/mil/dod/th/ose/logging/LogUtil.java
public static int convertNativeToOsgiLevel(final LogLevel level)
    {
        switch (level)
        {
            case Debug:
                return LogService.LOG_DEBUG;
            case Info:
                return LogService.LOG_INFO;
            case Warning:
                return LogService.LOG_WARNING;
            case Error:
                return LogService.LOG_ERROR;
            default:
                throw new IllegalArgumentException(String.format("Level %s is not a valid log level", level));
        }
    }
/**
     * Get the log level defined by {@link LogService} from the native {@link LogLevel}.
     * 
     * @param level
     *      native log level
     * @return
     *      {@link LogService} level
     */
Get the log level defined by  LogService from the native  LogLevel.


Get the log level defined by LogService from the native LogLevel .
public static int convertNativeToOsgiLevel(final LogLevel level)
    {
        switch (level)
        {
            case Debug:
                return LogService.LOG_DEBUG;
            case Info:
                return LogService.LOG_INFO;
            case Warning:
                return LogService.LOG_WARNING;
            case Error:
                return LogService.LOG_ERROR;
            default:
                throw new IllegalArgumentException(String.format("Level %s is not a valid log level", level));
        }
    }
public static int convertNativeToOsgiLevel ( final LogLevel level ) { switch ( level ) { case Debug : return LogService . LOG_DEBUG ; case Info : return LogService . LOG_INFO ; case Warning : return LogService . LOG_WARNING ; case Error : return LogService . LOG_ERROR ; default : throw new IllegalArgumentException ( String . format ( "Level %s is not a valid log level" , level ) ) ; } }
Get the log level defined by {@link LogService} from the native {@link LogLevel}.
Get the log level defined by { @link LogService } from the native { @link LogLevel } .