Log.convert

Return the enum value associated with name, or a default value

  1. Level convert(cstring name, Level def)
    struct Log
    static
    convert
  2. istring convert(Level level)

Parameters

name cstring

Case-independent string representation of an ILogger.Level If the name is not one of the logger, def is returned.

def Level

Default value to return if no match is found for name

Return Value

Type: Level

The Level value for name, or def

Meta