usar net ejemplos conversionpattern como asp log4net

ejemplos - log4net database appender



Log4Net Niveles Valores Numéricos (2)

Aquí hay un extracto de la clase de Nivel (descompilado con .net reflector)

public static readonly Level Alert = new Level(0x186a0, "ALERT"); public static readonly Level All = new Level(-2147483648, "ALL"); public static readonly Level Critical = new Level(0x15f90, "CRITICAL"); public static readonly Level Debug = new Level(0x7530, "DEBUG"); public static readonly Level Emergency = new Level(0x1d4c0, "EMERGENCY"); public static readonly Level Error = new Level(0x11170, "ERROR"); public static readonly Level Fatal = new Level(0x1adb0, "FATAL"); public static readonly Level Fine = new Level(0x7530, "FINE"); public static readonly Level Finer = new Level(0x4e20, "FINER"); public static readonly Level Finest = new Level(0x2710, "FINEST"); public static readonly Level Info = new Level(0x9c40, "INFO"); private readonly string m_levelDisplayName; private readonly string m_levelName; private readonly int m_levelValue; public static readonly Level Notice = new Level(0xc350, "NOTICE"); public static readonly Level Off = new Level(0x7fffffff, "OFF"); public static readonly Level Severe = new Level(0x13880, "SEVERE"); public static readonly Level Trace = new Level(0x4e20, "TRACE"); public static readonly Level Verbose = new Level(0x2710, "VERBOSE"); public static readonly Level Warn = new Level(0xea60, "WARN");

Parece que no puedo encontrar los valores numéricos para los niveles predefinidos en Log4Net. ¿Alguien puede señalarme a ellos?


El código troncal para Level.cs da estos números:

  • Off: int.MaxValue (2,147,483,647; 0x7FFFFFFF)
  • Emergencia: 120000
  • Fatal: 110000
  • Alerta: 100000
  • Crítico: 90000
  • Severo: 80000
  • Error: 70000
  • Advertir: 60000
  • Aviso: 50000
  • Información: 40000
  • Depuración: 30000
  • Bien: 30000
  • Traza: 20000
  • Finer: 20000
  • Verbosa: 10000
  • Mejor: 10000
  • Todos: int.MinValue (-2,147,483,648; 0x80000000)