SimulationManager.ReadLogLevel C# (CSharp) Method

ReadLogLevel() private static method

private static ReadLogLevel ( JsonData, json, MyLogLevel &value ) : void
json JsonData,
value MyLogLevel
return void
    private static void ReadLogLevel(JsonData json, ref MyLogLevel value)
    {
        if (json != null && json.IsString)
        {
            string testVal = ((string)json).ToLowerInvariant();
            if (testVal == "log")
                value = MyLogLevel.LogAll;
            if (testVal == "warning")
                value = MyLogLevel.Warning;
            if (testVal == "error")
                value = MyLogLevel.Errors;
            if (testVal == "none")
                value = MyLogLevel.None;
        }
    }