log4net

Log session and session changes of a asp.net web user

This is going to be a quite broad question, and any suggestions, examples, links are very welcome! I'm looking for a good way to log my users session, and actions on the site up to a certain point. The site in question is a site for doing bookings. The users start with doing a search, doing a few steps of data gathering and selections...

is there any cause for concern using log4net with .NET 3.5 and later

I have read this page and noticed that .NET 3.5 is not specifically listed. Is this cause for concern? ...

log4net and ints

Hi, I have been working a bit with log4net and have been inserting extra fields, but I have problems with adding int fields. Could anyone show a configuration where an int is used, since I have not been able to find it on their homepage. I normally just use a configuration like: <parameter> <parameterName value="@orderid" /> ...

Log4Net and .NET 4.0

There have not been any log4net release for some time. This has not presented any problems with 3.5, but what about .NET 4? Has anyone heard any rumblings about a release to support the version 4 framework when it comes out? ...

Log4Net - Create an Smtpappender programatically

Hello I am a beginner in log4net and I am trying to add an appender in my code and then to send an email in case of an Error. I dont want to use a config file. My program runs but I never receive the email. Can you please let me know what's wrong in my code Dim test2 As log4net.Appender.SmtpAppender = New log4net.Appender.SmtpAppe...

Need advice on server side logging with log4net.

Dear ladies and sirs. We are using log4net for our server side logging. The problem we are facing is with the FileAppender. Here is our log4net section in the app.config file: <log4net xsi:noNamespaceSchemaLocation="http://csharptest.net/downloads/schema/log4net.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt...

NHibernate without log4net?

The problem is NHibernates dependany on log4net. I am trying to build an IoC app with interchangable Loggers, and this thing gets in the way. Is there a build out there without this dependancy or do I have to do some open source code hacking myself? ...

How can I enable logging with Ninject?

Is there a way to get Ninject to log out what it is doing? In particular I'd like to see when objects are being created. As I have a mix of transient and singleton objects it'd be very useful for me during debug to be able to see how many instances of each are being created so that I can fix object scopes where needed. EDIT: N.B. I'...

Log4net - log parts of code, used in a couple of methods

Hi. I have some trouble. My application could be divided to 3 logical parts (import, processing and export). There are some parts of code which are used in several parts of my application. How can I determine which part of code called my log4net object? What is best practice to log info in parts of code which are called from several pla...

What are the best practices for including logging using log4net?

I have been told to add “logging” to my code using log4net, the problem is no one can travel in time and see what real world problems the logging will need to be used to solve. Therefore is there a set of guidlines anyway as to what to log so as to get a reasonable cost/benefit trade off? Therefore: What kinds of logging should one...

Does log4net support including the call stack in a log message

I wish to include the call stack (e.g. the methods that called me) in a log4net message. Is there a standard way of doing this? (I know this will be slow, but I only need to do it on some errors) ...

How to set Quartz.net worker thread name?

How can I set name of the worker thread in Quartz.net? [2009-12-15 08:56:25] [DefaultQuartzScheduler_Worker-1] INFO I wanted to see some meaningful information in the logs. I tried using JobDetail constructor, but looks like I am wrong. var job = new JobDetail("n1", null, typeof (MyJob)); Thanks, Vadi ...

Application does not log

I have a number of ASP.NET applications that use log4net without issue. I have not been able to get log4net to log anything in any of the services I wrote using the MVC libraries. I have the configuration identical (aside from log file name) in all the services. Each service is running as the same user and use the same application pool. ...

Prism 2.1: Accessing the IOC Container from App.xaml?

I am creating a Prism 2.1 app in which I have implemented logging, using Log4Net in a custom logger derived from ILoggerFacade. Logging works great; I simply resolve ILoggerFacade against the IOC Container, and it returns my logger, which I send a message to in the usual manner. Here is my problem: I want to log the application exit, an...

How do I control WCF logging from a log4net config file?

We do all our logging with log4net, our support staff etc know how to edit the log4net config files. We are now making use of WCF in our apps. Therefore how can I enable the WCF built in logging to be controlled from the log4net config file, so that there is a single way to control all logging. ...

How to implement a sample log4net repository

How do I implement a custom LOG4NET parser for my XML file. My XML file contains: (1) extra attributes on the appender element (2) custom replacements on the elements of some of the appenders that need to be set at runtime. For example: <appender name=... type=... mode="something"> <some-property-of-appender>${MyValueForThisPropert...

how do you make log4net output to current working directory?

Is it possible to have log4net put its log files relative to the current working directory instead of the directory where the application resides? In other words, if I run ..\myapp.exe, I don't want the log files in ..\ I want them in .\ ...

logging- changing implementation?

We have been using log4net for logging our asp.net web forms application. Our logging is typically in our business layer and the typical implementation is like this SomeMethodCall(MethodParams) { Log.Start("Starting Some Method"); try { //do something } catch(Exception ex) { Log.Exception("exception in SomeMethodCall"...

log4net configuration exception

I am using log4net for logging. My logging configuration is stored in a separate file. Web.Config:ConfigSections <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> Specifying my config file in AssemblyInfo.cs [assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config", Watch = true)...

log4net logging from web app

I have a framework library which would do a lot of thing including logging. We are using log4net for logging. This framework has the static logging class LogManager, a static instance of ILog (logger) and static methods for logging INFO,WARNING,DEBUG etc. the static instance logger is getting initialized like this public static class...