logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Green" <James.Gr...@occam-dm.com>
Subject RE: Using AdoNetAppender
Date Tue, 16 Jun 2009 09:58:12 GMT
Cracked it ...

            AdoNetAppenderParameter logLevel = new
AdoNetAppenderParameter();
            logLevel.ParameterName = "@log_level";
            logLevel.Layout = new Layout2RawLayoutAdapter(new
PatternLayout("%level"));
            logLevel.Size = 50;
            logLevel.DbType = System.Data.DbType.String;
            _sqlDatabaseAppender.AddParameter(logLevel);

Regards,

James.

Mime
View raw message