Re: Parsing XmlLayout formatted events (or how to set up Chainsaw and log4net)

2004-12-04 Thread Ron Grabowski
I installed Chainsaw by going to this URL: http://logging.apache.org/log4j/docs/chainsaw.html#Installation And clicking on the [Launch now!] link. It opened fine and I was able to run the tutorial that setup 3 sample recievers. I must admit I'm shooting in the dark here so any help would be

Setting up Chainsaw and log4net

2004-12-07 Thread Ron Grabowski
Thanks for your reply Simon. In addition to the change you suggested, I also searched the old mailing list at Sourceforge and discovered that I was missing a config file for Chainsaw: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration

RE: Ability to use tilda (or relative path) when specifing output file in config file for ASP.Net logging

2004-12-10 Thread Ron Grabowski
FileAppender.cs in beta 8 contains this code: virtual public string File { get { return m_fileName; } set { m_fileName = ConvertToFullPath(value.Trim()); } } On line 132 of the same file I see this notation: override public void ActivateOptions() { base.ActivateOptions(); if (m_fileName

RE: Ability to use tilda (or relative path) when specifing output file in config file for ASP.Net logging

2004-12-10 Thread Ron Grabowski
{base.File = Web.WebEnvironment.LogDirectory + value;} } } -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 12:57 PM To: Log4NET User Subject: RE: Ability to use tilda (or relative path) when specifing output file in config file

Re: Log an Exception

2004-12-14 Thread Ron Grabowski
%m baiscally calls ToString() on the exception. Are you sure you exception contains stack information. --- Collier, Mike [EMAIL PROTECTED] wrote: I apologize if you get this message twice. I originally sent it to the old Sourceforge.net list before I realized it was closed.

Re: How to use ErrorHandler

2004-12-18 Thread Ron Grabowski
If you download and install this free program: http://www.sysinternals.com/ntw2k/freeware/debugview.shtml And setup log4net to run in Debug mode: appSettings add key=log4net.Internal.Debug value=true / /appSettings You should be able to see your Appenders being initialized and/or the

Re: logger question

2004-12-30 Thread Ron Grabowski
Could you do something like this: logger name=MyObjectINFO level value=INFO / appender-ref ref=TableAppender / /logger logger name=MyObjectWARN level value=WARN / appender-ref ref=EmailAppender / /logger --- Dru Sellers [EMAIL PROTECTED] wrote: Can I do

Re: IM or SMS support

2004-12-30 Thread Ron Grabowski
This looks interesting: http://www.fluentconsulting.com/components/Fluent.Toc/ I recall there being a limit to the size of a message. You would also have to manage issues like how often the appender would check to see if a buddy is online, queuing up messages so the buddy isn't flodded with

Re: log4net and Chainsaw

2005-01-04 Thread Ron Grabowski
I've gotten Chainsaw v1.3 and log4net to work using the following Chainsaw config file. These two files are for a webapp running on localhost. Save this XML to a file called udp.xml and load it when Chainsaw boots up. ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd

Best practices to avoid logging same information multiple times

2005-01-06 Thread Ron Grabowski
I'm currently logging exceptions as soon as they occur. If an exception occurs in my data layer, I log it in the catch block of the try it occured. Should that exception also be caught at the very top layer that initiated the exception (i.e. the btnSubmit_Click event that started the form

RE: Best practices to avoid logging same information multiple times

2005-01-06 Thread Ron Grabowski
--- [EMAIL PROTECTED] wrote: My personal view on this is that you should only catch an exception where you can do something about it. If you are catching an exception in your data layer simply to log it and then re-throw it, then you are just slowing down your application. Try ... catch

Re: log4net can't find config file

2005-01-06 Thread Ron Grabowski
If you assembly is called Foo and your .DLL file is called Foo.dll, try naming your file config file Foo.dll.log4net FYI, I've found that when I am building and launching my program from inside of Visual Studio ((i.e. pressing F5) the config file is not found . I need build my project then launch

RE: when to use each log level

2005-01-10 Thread Ron Grabowski
I find it helpful to put a small comment block next to my loggers in my config file: !-- General guidelines for log4net levels: DEBUG - lots of information; exception optional INFO - generally one line messages without exceptions to show progress of application WARN - usually occurs when a

RE: ADONetAppender through a firewall

2005-01-27 Thread Ron Grabowski
What happens if the database never comes back online? Are messages held indefinietly? Should there be another threshold that that tells log4net when to stop trying? log4net assumes a certain level of stability with its loggers. I don't think its the responsibility of log4net to handle a database

Re: FileAppender RemoteLoggingServerPlugin

2005-01-28 Thread Ron Grabowski
NLog: http://nlog.sourceforge.net/ has a keepFileOpen property on its FileAppender that may do what you need: http://nlog.sourceforge.net/appenders.html#FileAppender NLog has almost identical method signatures to log4net. The switch shouldn't be terrible difficult (especially if your project

Re: FileAppender RemoteLoggingServerPlugin

2005-01-28 Thread Ron Grabowski
Could you extend MemoryAppender and decide how you want to write your file when some internal buffer gets full? --- Kapil Sachdeva [EMAIL PROTECTED] wrote: Can you suggest any other way ? I was thinking may be to write my own appender mostly like FileAppender (basically inheriting it

Re: Log format (conversionPattern)

2005-01-31 Thread Ron Grabowski
Instead of %newline, try %n. Instead of %message, use %m. This is what I use on my FileAppenders: layout type=log4net.Layout.PatternLayout,log4net param name=ConversionPattern value=%5p %d{-MM-dd hh:mm:ss tt} (%c:%L) - %m%n / /layout --- Elise DUPONT [EMAIL PROTECTED] wrote: Hi all,

Re: Viewer for log4net

2005-02-02 Thread Ron Grabowski
Myself and at least one other user on the list has gotten Chainsaw to work using the following settings. Save this as udp.xml and load it when Chainsaw starts: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration

FileAppender's OpenFile() has mandatory call to Directory.CreateDirectory(...)

2005-02-11 Thread Ron Grabowski
When I uploaded my project to my web hosting company I was able to capture log4net's internal debug messages and output them to a file (which tells me the folder where the log files are being written to exists and is writable). The following exception appeared in the log file:

Re: log4net, UDPAppender and Chainsaw v2

2005-02-11 Thread Ron Grabowski
I recall using the UdpAppender to send packets to another IP address other than 127.0.0.1. Here is discussion from the log4j list about setting up tabs: http://tinyurl.com/6l3uh http://www.mail-archive.com/log4j-user%40logging.apache.org/msg02540.html - Ron --- Chris Restall [EMAIL PROTECTED]

Re: log4net, UDPAppender and Chainsaw v2

2005-02-12 Thread Ron Grabowski
would be interested too. - Ron --- Chris Restall [EMAIL PROTECTED] wrote: Ron Grabowski rongrabowski at yahoo.com writes: I recall using the UdpAppender to send packets to another IP address other than 127.0.0.1. Here is discussion from the log4j list about setting up tabs

Re: need sample

2005-02-25 Thread Ron Grabowski
The first place I look for help for things like this is Google. Have you tried searching for log4net example? http://www.google.com/search?q=log4net+example I would create a log4net.config file that looks something like this: ?xml version=1.0 encoding=utf-8 ? log4net appender

Support for extends attribute for appender tag in config file

2005-03-04 Thread Ron Grabowski
I often use the same base appender in my config files: appender name=Base type=MyProject.Logging.AspNetRollingLogFileAppender, MyProject file value=~/Logs/Base.txt / appendToFile value=true / maxSizeRollBackups value=3 / maximumFileSize value=1MB /

Re: still looking for info on how to specify a location/filename

2005-03-07 Thread Ron Grabowski
I searched all the source files in the log4net Visual Studio solution and couldn't find any mention of log-file.txt. You can name your log files whatever you want: file value=helloWorld.txt / Could you re-post your appender tag that contains the file node? - Ron --- Rutledge, J. Mike [EMAIL

Re: Example works, can't get my first attempt to log

2005-03-09 Thread Ron Grabowski
Do you (and/or the ASP.Net worker process) have write access to the directory you writing your files? --- Owen Corpening [EMAIL PROTECTED] wrote: Using log4net-1.2.0-beta8 I copy LogHelloWorld example to C:\Inetpub\wwwroot Double-click LogHelloWorld.csproj, press run, press the

Re: Rolling file appender

2005-03-10 Thread Ron Grabowski
Did you try searching the list archives? Other users have experienced this problem. The short answer would be to upgrade to the latest version in source control. You may also want to check out the thread from Sunday of this week titled: Logging truncates the file at noon --- Baldree Matt [EMAIL

Re: Log4Net only for the committed techies

2005-03-18 Thread Ron Grabowski
--- Jaroslaw Kowalski [EMAIL PROTECTED] wrote: 2. Console.WriteLine() lets you pass parameters for formatting while log4net doesn't and requires you to use string concatenation or explicit string.format() Console.WriteLine(aaa {0} {1} {2}, 1, DateTime.Now, 23); This may or may not be

RE: Log4Net only for the committed techies

2005-03-18 Thread Ron Grabowski
Please don't write code like that :) --- Hart, Leo [EMAIL PROTECTED] wrote: For the garbage problem, can't you just use a StringBuilder there to avoid that? For instance: Log.Debug(new StringBuilder(My name is[).append(name).append(].); -Original Message- From: Jaroslaw Kowalski

Re: Release of log4net 1.2.9 beta

2005-03-23 Thread Ron Grabowski
This page: http://logging.apache.org/log4net/release/sdk/log4net.NDC.html says The NDC is deprecated Another page on the website says The NDC (Nested Diagnostic Context) exists for compatibility with older versions of log4net. The same sentances appear for MDC. The example configuration

Re: Release of log4net 1.2.9 beta

2005-03-23 Thread Ron Grabowski
-9936523 I think this line: log4net.Appender.FileAppender+MinimalLock should read: log4net.Appender.FileAppender.MinimalLock I think that's it for now. Good job on the new release! - Ron --- Ron Grabowski [EMAIL PROTECTED] wrote: with the specific context that I placed the item

Re: Release of log4net 1.2.9 beta

2005-03-24 Thread Ron Grabowski
This is the page I was looking for. I re-read it a few times and it answered a lot of my questions: http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayout.html Sorry for all the unnecessary list traffic. - Ron --- Ron Grabowski [EMAIL PROTECTED] wrote: and I'm not clear

Re: Programmatically update the config file.

2005-03-31 Thread Ron Grabowski
The config file is just a standard XML file. Have you tried using an XmlDocument object to read the file in, make your changes, then write it back to the file system? If you've configured log4net to place a file system watch on the file, when you save the file back out to the hard drive log4net

RE: Programmatically update the config file.

2005-03-31 Thread Ron Grabowski
this XmlDocument? If there is no way, is there an exact matching between the property name and associated node in the config file? That could help me a lot using Reflection. Thanks again. Ciao, Richard. -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent

Re: Filtering root log with LoggerMatchFilter doesn't work

2005-04-08 Thread Ron Grabowski
What happens when you use the additivity=false attribute on your logger: logger name=IBatisNet.DataMapper.Configuration.Statements additivity=false level value=OFF / appender-ref ref=IbatisAspNetLogFileAppender / /logger --- [EMAIL PROTECTED] wrote: Hi, We are developing a project in which

RE: Using v1.2.0 Beta 8 and v1.2.9 Beta at the same time?

2005-04-12 Thread Ron Grabowski
--- [EMAIL PROTECTED] wrote: Ron, My guess is that if you are in the same app domain, you could swap them in the /bin folder, but since there were breaking changes it might now work. You can't have them both there because there would be namespace conflicts. Hrmm, I thought perhaps someone

RE: Buffer Flushing and Table Maintenance in the ADONetAppender

2005-04-14 Thread Ron Grabowski
Personally I don't think that database maintenance falls under the scope of a logger. If you really want that functionality, a good starting point may be to introduce timer nodes for the AdoNetAppender appender that executes commandText when a datePattern changes: appender ... bufferSize ... /

More things a logger should (or shouldn't?) do. Was RE: Buffer Flushing and Table Maintenance in the ADONetAppender)

2005-04-18 Thread Ron Grabowski
Since we're on the subject of things a logger should or shouldn't do, what are people's thoughts on having the logger (log4net, nlog, etc.) automatically log certain well-known .Net objects (or Interfaces) such as IDbCommand and IDbConnection via code proxy? I've used the IBatis libraries in some

RE: Log4Net Viewer

2005-04-25 Thread Ron Grabowski
page, I have not included the style sheet so the html doesn't look to great. Can you have a look at this and see if it makes sense; factually correct would be a good start. Cheers, Nicko -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 22 April

Re: EventLogAppender configured but logger thinks that logging is disabled

2005-04-28 Thread Ron Grabowski
Have you told log4net to start logging? [assembly: log4net.Config.DOMConfigurator( ConfigFile=Log4Net.config,Watch=true )] --- Micdev42(Yahoo) [EMAIL PROTECTED] wrote: Hello, I have an ASP.NET 1.1. application. Here is my code: log4net.ILog log =

Example using log4net.Appender.ADONetAppender for 1.2.0 beta 8 and SQLite

2005-05-05 Thread Ron Grabowski
Other people might find this useful... This was tested against v0.21 of the SQLite .NET provider: http://sourceforge.net/projects/adodotnetsqlite SQLite doesn't have strongly-typed columns or field lengths but its recommended you still include this information for readability: CREATE TABLE

Re: XmlConfigurator.Configure missing

2005-05-06 Thread Ron Grabowski
What version of log4net are you using? The documentation on the website is for the current version of log4net: 1.2.9 beta. If you are using the previous version: 1.2.0 beta 8, the call to Configure would look something like this: // configure log4net with a log4net.config located // in the

RE: Example using log4net.Appender.ADONetAppender for 1.2.0 beta 8 and SQLite

2005-05-11 Thread Ron Grabowski
examples page. Do you know which version of SQLite this was tested against? Cheers, Nicko -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 17:05 To: log4net-user@logging.apache.org Subject: Example using log4net.Appender.ADONetAppender

RE: Example using log4net.Appender.ADONetAppender for 1.2.0 beta 8 and SQLite

2005-05-11 Thread Ron Grabowski
is up to v3.1.5 (March 11 2005). --- Nicko Cadell [EMAIL PROTECTED] wrote: Ok so it embedded in the provider. I guess that makes things simple. Cheers. -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 15:16 To: Log4NET User Subject: RE: Example

Re: not getting a log file

2005-05-11 Thread Ron Grabowski
This is the correct class: log4net.Util.LogLog.InternalDebugging = true; --- Owen Corpening [EMAIL PROTECTED] wrote: To enable log4net's internal debug programmatically you need to set the log4net.helpers.LogLog.InternalDebugging property to true. How do I do that from my C# code, say

RE: Multiple Log files

2005-05-12 Thread Ron Grabowski
I don't mind Jaroslaw posting here. I think there's plenty of room in the log world for 2 well designed loggers. I thought Nicko's reply was a bit complicated. I think all the user need ed to do was put something in the MDC to differenciate log requests during post-processing. That's just one

Wrapping LogManager to make ILog not rely on log4net.ILog

2005-05-15 Thread Ron Grabowski
Nicko, Several months ago I found a post on the SourceForge forums that described how to abstract the log4net.ILog interface into something like MyProject.Logging.ILog to allow a project to change its logging implementation. You provided sample code that looked something like this: public class

RE: Wrapping LogManager to make ILog not rely on log4net.ILog

2005-05-17 Thread Ron Grabowski
The application I'm working on consists of a Core project and several sub-projects. The sub-projects have a reference to the Core project. We didn't want to require each of the sub-projects to have a reference to log4net. The thinking behind that was what if we wanted to change out loggers or

log4netContrib.AspNetPatternConverters

2005-05-23 Thread Ron Grabowski
I've written a collection of PatternConverter classes to make log4net 1.2.9 beta play nicely with Asp.Net. They allow for properties of the Application, Cache, Context, HttpRuntime, Request, Response, and Session to be used to configure log4net. Values from these objects may also be inserted into

Re: Using parameters with ADONetAppender and FireBird

2005-05-26 Thread Ron Grabowski
Are you able to get this style of INSERT statement working: appender name=AdoNetAppender type=log4net.Appender.AdoNetAppender connectionString value=System.Data.Odbc.OdbcConnection, System.Data, version=1.0.3300.0, publicKeyToken=b77a5c561934e089, culture=neutral / layout

Re: How to use ErrorHandler

2005-05-27 Thread Ron Grabowski
=System.Diagnostics.TextWriterTraceListener initializeData=C:\\log4net.txt / /listeners /trace /system.diagnostics --- Ron Grabowski [EMAIL PROTECTED] wrote: If you download and install this free program: http://www.sysinternals.com/ntw2k/freeware/debugview.shtml And setup log4net to run

Re: A couple of questions and comments

2005-05-30 Thread Ron Grabowski
1. In the ILog interface, log4net provides methods with open argument lists (DebugFormat etc.), but IIRC the params keyword of C# is not CLS compliant. What is your attitude towards CLS compliance? (In our old logging infrastructure, we separated the members into two interfaces, ITracer

Re: ASP.Net Blocking Problem

2005-06-01 Thread Ron Grabowski
Could you post your appender node for us. What database are you logging to? According the documentation for 1.2.9 beta, there is a property called bufferSize which writes statements to the database in batches: bufferSize value=100 / A similiar property exists in 1.2.0 beta 8. Its very common

RE: RE:ASP.NET Blocking Problem

2005-06-02 Thread Ron Grabowski
According to this website: http://www.connectionstrings.com/ Sql Server allows for Max Pool Size and Min Pool Size to be specified in the connection string. Have you verified that only a single connection is being used? Have you verified that log messages are being lost when buffering is on?

Re: ASP.NET Blocking Problem

2005-06-02 Thread Ron Grabowski
Nicko checked in a MSMQ appender into source control a few days ago. I'm not familiar with MSMQ in terms of what it guarantees to capture (is it just a sink?). You could try writing things to there then write another program to extract the data out and insert it into the database. I glanced at

Re: Advanced Configuration

2005-06-02 Thread Ron Grabowski
Log statements are sent to a Logger which in turn writes to one or more Appenders. First you must get a Logger. Most people use the class name as the name of the logger: namespace Company.Project { public class Foo { ILog log = LogManager.GetLogger(typeof(Foo)); public void

Re: Advanced Configuration

2005-06-02 Thread Ron Grabowski
I don't understand your final question. What are you trying to log? just get to use simple types Are you wanting to log the output from something like a BinaryFormatter? --- Weston Weems [EMAIL PROTECTED] wrote: Well my main goals are: log additional info (totally understand how to do

Logger/Appender that listens for events, then logs messages

2005-06-07 Thread Ron Grabowski
Suppose I have an object that when processes things internally raises events to give status updates. Is it possible to configure log4net in such a way that it registers for these events then logs the message through the log4net framework? I'd like to do this via the xml config file.

Re: Spawning new threads / creating Timers in an Appender?

2005-06-08 Thread Ron Grabowski
Maintenance is the correct spelling :) --- Ron Grabowski [EMAIL PROTECTED] wrote: I'm toying with the idea of extending the AdoNetAppender to add the ability to run additional queries after a defined time period. The syntax would look something like this: appender name

Re: log4net.Config.XmlConfigurator.ConfigureAndWatch()

2005-06-09 Thread Ron Grabowski
log4net should never raise an exception. Its been designed to not interfere with your application. If you do not call Configure, log4net will not configure itself. --- [EMAIL PROTECTED] wrote: Hi I would like to know what will happen if I get a logger using LogManager and make a log

Re: Chainsaw - SQLServer please help

2005-06-09 Thread Ron Grabowski
Have you verified that com.microsoft.jdbc.sqlserver.SQLServerDriver is in your class path? Scott Deboy on the log4j list is the Chainsaw guru. Here is one of his example reciever files for SQL Server: http://tinyurl.com/99uf5

Re: error log truncated

2005-06-09 Thread Ron Grabowski
doh! trace autoflush=true indentsize=0 --- Ron Grabowski [EMAIL PROTECTED] wrote: According to the documentation for the TraceListener class: http://tinyurl.com/93pbk http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html

Re: logging log4net exceptions to event log

2005-06-09 Thread Ron Grabowski
You could write your own EventLogTraceListener (System.Diagnostics.EventLogTraceListener is sealed) that looks for trace messages beginning with the following prefixes: log4net: log4net:WARN log4net:ERROR And logs those messages to the Event Log accordingly. Here is an example that shows how

Re: Buffer flushing problem?

2005-06-11 Thread Ron Grabowski
What are you trying to do? It looks like you're requesting a webpage then you want to iterate through each line in the file looking for information. There's got to be a simpler solution than the one you came up with. I suspect the problems you're experiencing are coming from the over-complication

RE: ASP.NET Blocking Problem

2005-06-12 Thread Ron Grabowski
of logging a different way? I'm also going to have a look at Corneliu's suggestion. -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 02 June 2005 17:11 To: Log4NET User Subject: Re: ASP.NET Blocking Problem Nicko checked in a MSMQ appender

Re: 1.2.9 log4net.Layout.XMLLayout

2005-06-13 Thread Ron Grabowski
There was a thread about this on the log4j list: http://tinyurl.com/9xusy http://www.mail-archive.com/log4j-user%40logging.apache.org/msg03488.html Some possible solutions include writing your own layout or storing the data using XmlLayoutSchemaLog4j and transforming it at a later time. You may

Re: Changes in 1.2.9 for log4net.Appender.RemotingAppender and log4net.Appender.SMTPAppender

2005-06-13 Thread Ron Grabowski
Do you see any helpful debug messages when you turn on log4net's internal debugging? http://logging.apache.org/log4net/release/faq.html#internalDebug http://tinyurl.com/a5l9n http://www.mail-archive.com/log4net-user%40logging.apache.org/msg01698.html --- Kremer, Mark [EMAIL PROTECTED] wrote:

Re: Single App needs two appenders with two sets of rights question

2005-06-13 Thread Ron Grabowski
You could put a filter on the email appender: http://logging.apache.org/log4net/release/manual/configuration.html#filters appender name=email type=log4net.Appender.SmtpAppender filter type=log4net.Filter.LevelRangeFilter levelMin value=ERROR / levelMax value=FATAL / /filter ... /appender

Re: Error with closed appender (More Info)

2005-06-14 Thread Ron Grabowski
What is log4nethelper.dll? --- Bonio Lopez [EMAIL PROTECTED] wrote: [Log4NetHelper, Version=1.0.1991.27610, Culture=neutral, PublicKeyToken=f15b37290cce9538] [3236] log4net: DefaultRepositorySelector: Assembly [Log4NetHelper, Version=1.0.1991.27610, Culture=neutral,

Re: Info Only Appender

2005-06-14 Thread Ron Grabowski
1) appender name=SystemLog type=log4net.Appender.FileAppender filter type=log4net.Filter.LevelMatchFilter levelToMatch value=INFO / /filter ... /appender 2) I'm don't understand your real-time logger description. Could you give another example or some sample calls and what the results

Re: Multiple client log

2005-06-14 Thread Ron Grabowski
If you're able to write all the logs to a database, you could run a simple query to pull out customer specific logs and write then to the special locations on the drive. --- Johann Rutnam [EMAIL PROTECTED] wrote: Hi, How do I use log4net to log message separately for each client that

Re: LOG4NET - Oracle 9i logging

2005-06-14 Thread Ron Grabowski
A good place to look for information about logging to Oracle 9i would be the Oracle 9i section of the log4net website: http://tinyurl.com/75k4w http://logging.apache.org/log4net/release/config-examples.html#adonetappender-o9 --- Usman Uppal [EMAIL PROTECTED] wrote: Where can i get sample vb or

RE: 1.2.9 log4net.Layout.XMLLayout

2005-06-14 Thread Ron Grabowski
that it takes the pattern and adds a and around each entire log statement. Is this correct? Is there a built-in way to easily output log statements in the format that I described below? -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 9:55 AM

RE: LOG4NET - Oracle 9i logging

2005-06-14 Thread Ron Grabowski
how should i enabled logging to DB in my code. My logging to file works. Any sample code is appreciated. Usman -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Tue 6/14/2005 4:06 PM To: Log4NET User Cc: Subject: Re

RE: 1.2.9 log4net.Layout.XMLLayout

2005-06-15 Thread Ron Grabowski
the XMLLayout do? It appears that it takes the pattern and adds a and around each entire log statement. Is this correct? Is there a built-in way to easily output log statements in the format that I described below? -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent

RE: Date Time in Header Footer

2005-06-15 Thread Ron Grabowski
of the examples - not including this one modification. Anyway, thanks once again Ron! Russ -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 15-Jun-05 11:39 AM To: Log4NET User Subject: Re: Date Time in Header Footer You could write your own pattern

RE: Date Time in Header Footer

2005-06-15 Thread Ron Grabowski
having a %now pattern; PatternString's %date pattern already does that. I learn something new every time I read the docs :-) - Ron --- Russell Haley [EMAIL PROTECTED] wrote: lol, my bad. That's probably what I did too... :-} Cheers Russ -Original Message- From: Ron Grabowski

Re: Date Time in Header Footer

2005-06-16 Thread Ron Grabowski
--- Russell Haley [EMAIL PROTECTED] wrote: Can I ask you where you found that? I was looking REALLY hard for that. It's upsetting when I can't find things... Now where did I put my config file? Russ Ron Grabowski wrote: This is what you want: header value=[BEGIN LOGGING AT %date

re: 1.2.9 beta

2005-06-17 Thread Ron Grabowski
I think its safe to say that no one uses 1.1.1 anymore. A lot of people on the list have been using 1.2.0 beta 8 in production for quick some time. I started using 1.2.9 beta builds on some production applications a few weeks ago. --- Russell Haley [EMAIL PROTECTED] wrote: Okay, let me try

Re: Logger/Appender that listens for events, then logs messages

2005-06-20 Thread Ron Grabowski
logs when you tell it to. I think the most straigh forward way to implement this would be to make a simple event sink that logs via log4net and register that on the events you are interested in. On Tue, 7 Jun 2005, Ron Grabowski wrote: Suppose I have an object that when processes things

Re: Rolling File Appender provided by Log4Net

2005-06-21 Thread Ron Grabowski
I don't think compressing files and complex file maintenance falls within the scope of log4net. What happens when the log file reaches 900mb in size? Even on a fast machine, compressing such a large file may cause a slow down. Perhaps you could have a second process or script run every day to

Re: Can't get logging output

2005-06-22 Thread Ron Grabowski
Some web servers require that the Network Service account have write access to the directory were log files are stored. What happens when you give Full Permission to the log directory for both the Network Service account and the Asp.Net account? I noticed that your config file had an extra

RE: Can't get logging output

2005-06-22 Thread Ron Grabowski
? -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 3:54 PM To: Log4NET User Subject: RE: Can't get logging output What does the log4net debug log contain? Adding a TraceAppender is not the same as adding a TextWriterTraceListener

Re: File path empty

2005-06-23 Thread Ron Grabowski
Is your project compiled in Debug or Release mode? --- Castro, Yvette [EMAIL PROTECTED] wrote: In my conversion pattern I use the %F or %file to get the file location with full file path. It outputs empty. Any ideas/suggestions greatly appreciated. Yvette

RE: File path empty

2005-06-23 Thread Ron Grabowski
%F %file %d - %m%n / /layout /appender I'm using log4net 1.2.9 beta. --- Castro, Yvette [EMAIL PROTECTED] wrote: I tried both. Currently it is in release mode. -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 2:51 PM

Re: LOG4NET - Oracle 9i logging error

2005-06-27 Thread Ron Grabowski
It looks like you mis-typed pParameterName. It should be: parameterName ... / --- Usman Uppal [EMAIL PROTECTED] wrote: Hi, I am getting following error while debugging logging to Oracle 9i. Do I need to set some parameters? Any help is appreciated. log4net: DOMConfigurator: Setting

Re: FW: LOG4NET - Oracle 9i logging error

2005-06-28 Thread Ron Grabowski
I'm a Sql Server guy :-) Instead of copying and pasting a large amount of unfamiliar code and wondering why it isn't working, have you considered starting out with simpler code: appender name=AdoNetAppender_Oracle type=log4net.Appender.AdoNetAppender connectionType

Re: Configuration Questions

2005-06-29 Thread Ron Grabowski
You could prefix a second logger with AUDIT to differentiate messages coming from the same class: ILog log = LogManager.GetLogger(GetClassName()); ILog auditLog = LogManager.GetLogger(AUDIT. + GetClassName()); auditLog.Info(The user has logged in.); logger name=AUDIT additivity=false

Re: Which context should I use?

2005-06-30 Thread Ron Grabowski
Have you looked into using the ThreadConext: http://tinyurl.com/ck7ve http://logging.apache.org/log4net/release/sdk/log4net.ThreadContext.html --- Weston Weems [EMAIL PROTECTED] wrote: I've got a few logging routines that are going to only store info pertinent to that exact application

Re: Which context should I use?

2005-06-30 Thread Ron Grabowski
this will be classess accessed from a webapp at all? On 6/30/05, Ron Grabowski [EMAIL PROTECTED] wrote: Have you looked into using the ThreadConext: http://tinyurl.com/ck7ve http://logging.apache.org/log4net/release/sdk/log4net.ThreadContext.html --- Weston Weems [EMAIL PROTECTED] wrote

Re: ADONet appender parameter types

2005-06-30 Thread Ron Grabowski
System.Data.DbType http://tinyurl.com/bandr http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadbtypeclasstopic.asp --- [EMAIL PROTECTED] wrote: Hi. I am using log4net 1.2.9 with .Net 1.1. For adonet appender what should be dbtype and size for

Re: Configuration Questions

2005-06-30 Thread Ron Grabowski
in there as well? Is that what additivity is? On 6/29/05, Weston Weems [EMAIL PROTECTED] wrote: Exactly the kind of thing I was looking for. On 6/29/05, Ron Grabowski [EMAIL PROTECTED] wrote: You could prefix a second logger with AUDIT to differentiate messages coming from the same

Re: Can't get logging output

2005-07-02 Thread Ron Grabowski
Where do expect the output to go? I didn't see where you setup a TraceListener to record output sent to System.Diagnostic.Trace. Perhaps you should start with a simple FileAppender which write messages to a file on your file system: appender name=FileAppender type=log4net.Appender.FileAppender

Re: Can't get logging output

2005-07-03 Thread Ron Grabowski
Where is your log4net.config file? If should be in the same folder as web.config. An alternative to using an attribute to configure log4net is to call the static Configure method yourself. This is how I configure log4net when using it with Asp.Net: http://tinyurl.com/854gb

Re: Configuration of Levels

2005-07-06 Thread Ron Grabowski
There has been example code in CVS since January 2004: http://tinyurl.com/9atgc http://cvs.apache.org/viewcvs.cgi/logging-log4net/examples/net/1.0/Extensibility/TraceLogApp/cs/src/TraceLogApp.cs?rev=1.3view=log I think it was possible with 1.2.0 beta 8 which means its existed since at least

Re: Configuration of Levels

2005-07-06 Thread Ron Grabowski
, INFO rather that what has been hardcoded into the log4* system? - Original Message - From: Ron Grabowski [EMAIL PROTECTED] To: Log4NET User log4net-user@logging.apache.org Sent: Wednesday, July 06, 2005 11:18 AM Subject: Re: Configuration of Levels There has been example

Re: Configuration of Levels

2005-07-06 Thread Ron Grabowski
. This question was asked specifically because Niko, awhile back, mentioned that the re-ordering of the logging levels was something that was being looked at. - Original Message - From: Ron Grabowski [EMAIL PROTECTED] To: Log4NET User log4net-user@logging.apache.org Sent

Re: Configuration of Levels

2005-07-06 Thread Ron Grabowski
Message - From: Ron Grabowski [EMAIL PROTECTED] To: Log4NET User log4net-user@logging.apache.org Sent: Wednesday, July 06, 2005 12:11 PM Subject: Re: Configuration of Levels I can't think of a good reason why someone would want to make WARN more serious than FATAL. Wouldn't

Re: Configuration of Levels

2005-07-06 Thread Ron Grabowski
You'd have to write your own ILog too. If you aren't going to be extending the MyLogImpl class, you could make it sealed and make the methods non-virtual for a speed boost. --- Ron Grabowski [EMAIL PROTECTED] wrote: You may have already found this the archives, but this is a post where Nicko

Implementing your own logger for log4net

2005-07-07 Thread Ron Grabowski
Occasionly I'll recommend people extend log4net and write your own logger if the default behaviour of log4net doesn't do what they need. The usually routine is to post a link to this page: http://cvs.apache.org/viewcvs.cgi/logging-log4net/extensions/net/1.0/ The examples on that page are well

RE: Windows Service

2005-07-12 Thread Ron Grabowski
The SDK documentation for the File property of the FileAppender says If the path is relative it is taken as relative from the application base directory. That line also appears in Visual Studio's Intellisense when you create a FileAppender and hover over the File property. I have a directory

  1   2   3   4   5   >