using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; namespace ASPNetBufferingWrapper { public partial class NormalPage : System.Web.UI.Page { private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); protected void Page_Load(object sender, EventArgs e) { // This page simulates correct flow, no warnings are emitted // This causes the postfiltering wrapper to emit only the Info messages logger.Info("info1"); logger.Debug("some debug message"); logger.Debug("some other debug message"); logger.Debug("yet another other debug message"); logger.Info("info2"); } } }