Re: Trying to write a J# log wrapper - mostly there

2005-09-16 Thread Ron Grabowski
Unless someone has a better idea, I think your best bet is to make a very very simple J# console app that demonstrates your problem and make it available for download somewhere (or email me off list) so we can play around with it. Perhaps zip containing a directory with the necessary files and the

RE: Trying to write a J# log wrapper - mostly there

2005-09-16 Thread Ron Grabowski
in the solution, but I did not include it as it's not needed. So just delete that project. Thanks - dave -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Friday, September 16, 2005 12:49 PM To: Log4NET User Subject: Re: Trying to write a J# log wrapper - mostly

Re: LayoutSkeleton Help

2005-09-15 Thread Ron Grabowski
FYI, there is code in SVN that allows this: layout type=log4net.Layout.PatternLayout ![CDATA[ GSIEventLog Domain%domain/Domain ClassName%class/ClassName RenderedMessage%message/RenderedMessage HostName%property{log4net:HostName}/HostName Identity%identity/Identity

RE: LayoutSkeleton Help

2005-09-15 Thread Ron Grabowski
What about this line: writer.Write(RenderedMessage + loggingEvent.RenderedMessage + /message); Are you viewing the output in a browser or with a program like Notepad? Have you tried removing all the elements and adding each one back one by one starting from the bottom? --- Jon Finley [EMAIL

RE: LayoutSkeleton Help

2005-09-15 Thread Ron Grabowski
that shows up is the exception text. If elements are removed one at a time, I see the correct XML but still get the exception text appended to the output. Jon -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 3:41 PM To: Log4NET

RE: LayoutSkeleton Help

2005-09-15 Thread Ron Grabowski
(); } public PatternLayout PatternLayout { get { return m_nestedLayout; } set { m_nestedLayout = value; } } } } -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: LayoutSkeleton Help

2005-09-15 Thread Ron Grabowski
(); } public PatternLayout PatternLayout { get { return m_nestedLayout; } set { m_nestedLayout = value; } } } } -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thursday

Re: Calling log4net from J#

2005-09-15 Thread Ron Grabowski
http://www.dotnetjunkies.com/WebLog/sajay/archive/2005/03/11/60012.aspx private static log4net.ILog log = log4net.LogManager.GetLogger(Class.ToType(Program.class)); --- David Thielen [EMAIL PROTECTED] wrote: Hi; I'm able to call log4net from J#. But how should I get my Ilog object?

Re: log4j jsl wrapper for log4net

2005-09-15 Thread Ron Grabowski
You could use your own LogManager and ILog interface: using Company.Logging; private static ILog log = LogManager.GetLogger(foo); If you wrote your own logger: http://tinyurl.com/b2lxq http://www.mail-archive.com/log4net-user%40logging.apache.org/msg01993.html --- David Thielen [EMAIL

RE: Internal debugging

2005-09-09 Thread Ron Grabowski
Is there anything inside of log4netInternalDebugging.txt? Does your xml file look like this: ?xml version=1.0 encoding=utf-8 ? configuration ... /configuration Maybe the closing /xml node is causing problems. App.Config is a special filename in Visual Studio gets renamed to the name of your

Re: COM and VisualBasic 6.0 and log4net

2005-09-02 Thread Ron Grabowski
If you need something right away, you may want to check out NLog's COM support: http://nlog.sourceforge.net/comapi.html --- Ramaa Davanagere [EMAIL PROTECTED] wrote: Has anybody been able to use log4net successfully in a Visual Basic 6.0 application thro' COM interop? If so, please post

RE: COM and VisualBasic 6.0 and log4net

2005-09-02 Thread Ron Grabowski
COM interop API as of today? Do you know if this is in works? Also, can you tell me why log4net doesn't support COM interop? - Ramaa -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 10:05 AM To: Log4NET User Subject: Re: COM

RE: COM and VisualBasic 6.0 and log4net

2005-09-02 Thread Ron Grabowski
almost there. I really want to use log4net because all of our newly developed products use log4net for logging and tracing and want to NLog as a worst case scenario. That's my long story. Please respond. - Ramaa -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED

RE: COM and VisualBasic 6.0 and log4net

2005-09-02 Thread Ron Grabowski
I see you've already done that. Nevermind then... --- Ron Grabowski [EMAIL PROTECTED] wrote: Maybe you need to set the path to your generated log4net.snk file in order to build correctly.

RE: Transactions and AdoNetAppender

2005-09-02 Thread Ron Grabowski
This blog post has a small correlation to this thread: http://weblogs.asp.net/pwilson/archive/2005/08/21/423209.aspx The 10th poster makes a brief comment on how the described behavior is already present in the 1.x Framework to some extent. --- Michael S. Collier [EMAIL PROTECTED] wrote: I

RE: Configurable configuration file location

2005-09-02 Thread Ron Grabowski
According to these two articles: http://www.devx.com/vb2themax/Tip/18880 http://weblogs.asp.net/pwilson/archive/2003/04/09/5261.aspx The syntax for including an external appSettings file is: appSettings file=YourSettings.config add key=KeyToOverride value=Original / add

RE: Transactions and AdoNetAppender

2005-09-01 Thread Ron Grabowski
You could host the file on a friend's website, your company's website for a few days, or use a free service like this: http://www.yousendit.com/ Is the class really that large that it needs to be a .ZIP file? Can you condense your working example down into one or two small text files and attach

RE: Transactions and AdoNetAppender

2005-09-01 Thread Ron Grabowski
transactions? I thought by setting the UseTransactions property to 'false', the AdoNetAppender wouldn't use transactions. Is that not necessarily the case? Thanks, Mike -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 2:53 PM

Re: I searched the archives and didn't see it jump out at me. I apologize if I missed anything but here goes:

2005-08-24 Thread Ron Grabowski
Log4net is designed to not throw exceptions. You application should continue to work even if someone is wrong with log4net. What happens when you enable internal debugging? http://logging.apache.org/log4net/release/faq.html#internalDebug http://tinyurl.com/e3ued

RE: Cannot switch between logging levels

2005-08-23 Thread Ron Grabowski
The problem you're having is that instead of specifing a ConnectionString property in the config file, you're finding the Appender and setting it in code Application_Start. When the config file changes, log4net gets reinitialized but you're never resetting the ConnectionString. You need to

log4net.Plugins

2005-08-23 Thread Ron Grabowski
Can plugins be added via the config file? Are plugins processed before or after the other elements of the config file have been processed? Is it possible for a plugin to hook into the pre-initialize Appender code somehow (i.e. call the appender's constructor, pass it to the plugin, then assign

Re: Please help... Log4net error when accessing 'web.config' on remote share...

2005-08-22 Thread Ron Grabowski
Are you able to open the file using code like this: string remoteFile = @\\192.168.11.111\ASPNET_APP\web.config; XmlTextReader xmlTextReader = new XmlTextReader(remoteFile); This search turned up some interesting results: http://www.google.com/search?q=credentials+unc+xmltextreader The

Re: How do you stop watching a configuration file?

2005-08-22 Thread Ron Grabowski
This is an interesting requirement. I don't think this falls within the scope of a logger. By that, I mean I don't think log4net needs an option to specify how how long it should watch its config file. I think its generally accepted that when you call ConfigureAndWatch you want to watch the config

Re: How do I set Category/Event in EventLogAppender?

2005-07-30 Thread Ron Grabowski
(You probably already know this) You don't need the .snk file to build in Release mode. If you comment out these lines from the AssemblyInfo.cs file: #if STRONG [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile(@..\..\..\log4net.snk)] #endif You can build in Release mode.

Re: cvs.apache.org down?

2005-07-29 Thread Ron Grabowski
--- Jeremiah Voris [EMAIL PROTECTED] wrote: Is it just me or is cvs.apache.org actually down? -- 533777336444244

Re: cvs.apache.org down?

2005-07-29 Thread Ron Grabowski
://monitoring.apache.org/status/ --- Ron Grabowski [EMAIL PROTECTED] wrote: --- Jeremiah Voris [EMAIL PROTECTED] wrote: Is it just me or is cvs.apache.org actually down? -- 533777336444244

Re: Not adhering to specified Level

2005-07-26 Thread Ron Grabowski
Level is a propety of the logger. I think you're trying to do this: appender name=RollingLogFileAppender type=log4net.Appender.RollingFileAppender threshold value=ERROR / ... /appender root level value=WARN / appender-ref ref=RollingLogFileAppender / appender-ref ref=SmtpAppender /

Re: Truncate log file before each run

2005-07-25 Thread Ron Grabowski
Set the FileAppender's appendToFile attribute to false: appendToFile value=false / --- Usman Uppal [EMAIL PROTECTED] wrote: Is it possible to configure appender to truncate log file before each run? Thanks, Usman

Re: Truncate log file before each run

2005-07-25 Thread Ron Grabowski
Its more of a node/property than an attribute :-/ --- Ron Grabowski [EMAIL PROTECTED] wrote: Set the FileAppender's appendToFile attribute to false: appendToFile value=false / --- Usman Uppal [EMAIL PROTECTED] wrote: Is it possible to configure appender to truncate log file before

Why does the FileAppender create a zero byte file when logger is set to OFF?

2005-07-21 Thread Ron Grabowski
When I set my root logger to OFF: root level value=OFF / appender-ref ref=FileAppender / /root A zero byte output file for my FileAppender appender is still created. Why is this? I would expect no file to be created.

Re: checked out log4net-1_2_9 and build failed

2005-07-20 Thread Ron Grabowski
According to Visual Studio, the word 'member' does not appear anywhere in TextWriterAppender.cs. The XML comments around line 109 looked correct to me. I was able to compile fine using nant -buildfile:log4net.build compile-all and build.cmd. According to CVS, the last significant revision to

Re: Using %C, %F, %l, %L and %M in ConversionPattern

2005-07-14 Thread Ron Grabowski
Can the method name be extracted in Release mode as well? How does building in Debug or Release mode affect the timings on your machine? --- Niall Daley [EMAIL PROTECTED] wrote: Leo, In order to generate the method name log4net has to throw an exception and check the stack trace so,

Re: Where do I place my Log4net.config file in an IIS-based Remoting Application?

2005-07-14 Thread Ron Grabowski
Are you able to call Configure yourself during Application_Start? http://tinyurl.com/87b8q http://www.mail-archive.com/log4net-user%40logging.apache.org/msg01960.html --- Johan Glozman [EMAIL PROTECTED] wrote: I have a .NET Remoting application for which I am using log4net. I have a number

Re: Where do I place my Log4net.config file in an IIS-based Remoting Application?

2005-07-14 Thread Ron Grabowski
. -Johan Ron Grabowski [EMAIL PROTECTED] wrote: Are you able to call Configure yourself during Application_Start? http://tinyurl.com/87b8q http://www.mail-archive.com/log4net-user%40logging.apache.org/msg01960.html --- Johan Glozman wrote: I have a .NET Remoting application for which I

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

RE: Windows Service

2005-07-12 Thread Ron Grabowski
-Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 12, 2005 5:24 PM To: Log4NET User Subject: RE: Windows Service What does your call to Configure look like? --- Wang, Jason @ Newport MacArthur [EMAIL PROTECTED] wrote: I'm stuck. I can't figure out

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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-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: 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: 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: 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: 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

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: 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

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: 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: 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: 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

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: 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

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: 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

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: 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

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: 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 =

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

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: 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 ... /

<    1   2   3   4   5   >