Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
 
Add your own
alternative version

log4Net and SQLite

, 14 Jun 2012
This article explains how to work with log4Net and SQLite.
log4net.zip
log4NetSQlite.zip
log4NetSQlite
log4Net
log4NetExample.suo
App_Data
log4net.db
bin
log4net.dll
log4net.pdb
log4NetExample.dll
log4NetExample.pdb
System.Data.SQLite.dll
System.Data.SQLite.pdb
Global.asax
log4NetExample.csproj.user
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache
log4NetExample.dll
log4NetExample.pdb
ResolveAssemblyReference.cache
TempPE
Properties
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using log4net;

namespace log4NetExample
{
    public partial class log4netPage : System.Web.UI.Page
    {
        private static readonly ILog log = LogManager.GetLogger(typeof(log4netPage).FullName);
        protected void Page_Load(object sender, EventArgs e)
        {            
            Session["Usuario"] = "log4Net";
            log.Debug("Debug Message");
            log.Info("Debug Message");
            log.Warn("Debug Message");
            log.Fatal("Fatal error", new Exception("Fatal error generated"));
            log.Error("Error message", new Exception("Error message generated"));
            Response.Write("<H1>Log Generated Successfully...</H1>");
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0

Share

About the Author

Elvin Deras
Program Manager Grupo Leitz
Honduras Honduras
No Biography provided
Follow on   Twitter

| Advertise | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 14 Jun 2012
Article Copyright 2012 by Elvin Deras
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid