> -----Original Message----- > From: Hollywood [mailto:[EMAIL PROTECTED] > Sent: 05 June 2004 15:20 > To: [email protected] > Subject: Fw: Dyanmic Levels. > > Am I correct in assuming that at this time functionality for > dynamically changing the ordering of the the Levels in the > log4net.spi.Level class? Does anyone know if this is on the > "roadmap" for any time soon?
Levels are made up of a string name and an integer value. The value is used to determine the relative ordering between levels. Level objects are immutable. The Level class defines some well known levels and their ordering, these are exposed as static fields. The ordering of these built-in levels is currently baked in to the core and several appenders. Changing the relative ordering of the levels in the Level class only may have unexpected side-effects. > I'd really hate to have to > continually rebuild log4net just to make some changes in the > log4net.spi.Level class. What changes would you envision making? Especially what would you be changing more than once? New levels can be created without modifying the log4net code using the public Level constructor. Levels do not have to be declared in the Level class. Any level object can be passed to the Ilogger.Log method. In order for a level name to be known when reading the configuration file the level must be in the ILoggerRepository.LevelMap. Cheers, Nicko ------------ Nicko Cadell log4net dev
