From: Martin A. <mar...@go...> - 2003-12-03 15:00:28
|
Hi all, I'm very confused by logging support in current nant. There exist two distinct mechanisms! One implemented in Task via Log method (and Verbose/Info/Warning/Error levels) and second via log4net! Why not use log4net even for screen outputs?? It will be much easier to redirect such output to file etc. (even redirect verbose output and to screen with warning level only). This could also prevent this: logger.Info(strLogContents); //do not print LogPrefix, just pad that length. Log(Level.Info, new string(char.Parse(" "), LogPrefix.Length) + strLogContents); why to have it twice and format message here? That is log4net stuff, I think... Martin |