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

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