RE: cpp ConsoleApp compile problems

2004-07-30 Thread Nicko Cadell
Heather, The build.cmd in is the root of the log4net download. This build file will bootstrap the NAnt build for the current directory and recurse through the sub directories. You need to make sure that the root log4net directory is in the path (not the directory with the log4net assembly), then

RE: Data Types

2004-07-30 Thread Eric Seifert
Thanks. All I see that's over the 8000 mark is object so I'll try using that to insert into a text field and see how it goes. -Original Message- From: Nicko Cadell [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 5:21 PM To: Log4NET User Subject: RE: Data Types Eric, The AdoNetAppe

RE: Data Types

2004-07-30 Thread Nicko Cadell
Eric, The AdoNetAppender parameter just sets values on a System.Data.IDbDataParameter object. The DbType can be any value from the System.Data.DbType enum. The Size is the maximum size in bytes of the data within the column, however it is optional as the provider can determine this from the size o

RE: How to use different appender for each logging level?

2004-07-30 Thread Nicko Cadell
Wayan, To log to two different files you need to create two different appenders, one for each file and then use an in the to append to both files. Then you need to specify on the a filter to use to restrict the events that are written to the file. If you want one file to have INFO and above and

RE: How does work?

2004-07-30 Thread Nicko Cadell
Both the and have Threshold properties, however they have different behaviour. The Threshold sets the minimum level for an event to be appended. This is what it sounds like you are after rather than specifying an . ... The is used in conjunction with buffering to determine if an even

RE: OutputDebugStringAppender and VS Output Window

2004-07-30 Thread Nicko Cadell
> > My project is a Web app. I started it with F5. > Visual Studio debugger does not launch the aspnet_wp.exe process, it only attaches and detaches from it. As far as I know when VS debugger attaches to a process it does not hook the OutputDebugString messages. Therefore you cannot get OutputDe

RE: ERROR in VS.NET 2003 (WORKS IN VS.NET 2002)

2004-07-30 Thread Nicko Cadell
Rupesh, The 1.2.0.30714 (Beta 8) version has many bug fixes since the 1.1.1 release. I don't know of a specific reason why the 1.1.1 release would not work under VS.NET 2003, but I have never tested it in that environment. Nicko > -Original Message- > From: Pednekar, Rupesh [mailto:[EMAI

RE: logging method name and formatting method name

2004-07-30 Thread Nicko Cadell
Raj, Log4net can attempt to capture the location information from the caller. It does this by generating an exception and inspecting the stack trace within it. This can cause performance problems as generating a stack trace is very expensive. Also the .net runtime does not guarantee that the stack

RE: Using log4net within a dll

2004-07-30 Thread Nicko Cadell
Ryan, Have you tried running your app with log4net debug enabled? http://logging.apache.org/log4net/release/manual/faq.html#internalDebug This should tell you when log4net tries to load the config file and what it found there. If this doesn't answer your questions then post the debug output here

RE: ADONETAPPENDER

2004-07-30 Thread Nicko Cadell
The ADONetAppender is able to buffer events before writing them to the DB. The buffer size is controlled the following configuration: This means that the appender will not write anything to the DB until it has buffered 100 events, it will then write all the events in the buffer in one go. When l

RE: Log4net new user: error no appender found: what am I doing wrong?

2004-07-30 Thread Nicko Cadell
Michael, Sounds like a strange issue. Can you try changing your code to call configure like this: log4net.Config.DOMConfigurator.Configure(new System.IO.FileInfo(System.AppDomain.CurrentDomain.SetupInformation.Confi gurationFile)); Let me know if that makes a difference. Nicko > -Original

RE: XML appender

2004-07-30 Thread Nicko Cadell
Steve, Log4net has an XmlLayout that can be used to render events as XML: log4net.Layout.XmlLayout. The class has the following documentation: The output of the XmlLayout consists of a series of log4net:event elements. It does not output a complete well-formed XML file. The output is designed to

RE: Adding custom level

2004-07-30 Thread Nicko Cadell
Nik, There is an example extension in the log4net download that shows how to add a trace level to log4net. Have a look in extensions\net\1.0\log4net.Ext.Trace Nicko > -Original Message- > From: Nik Hassan [mailto:[EMAIL PROTECTED] > Sent: 07 July 2004 18:24 > To: Log4NET User; [EMAIL

RE: Question about remotingappender

2004-07-30 Thread Nicko Cadell
In your last message you seem to have included only the exception stack trace and missed the exception type and message. In .net 1.1 MS made some changes and you may need to update your config files for more info see: http://www.thinktecture.com/Resources/RemotingFAQ/Changes2003.html Nicko > --

RE: Problem with RemotingAppender and RemoteLoggingServerPlugin

2004-07-30 Thread Nicko Cadell
Raf, If you enable log4net debug you should get any error messages that are encountered. http://logging.apache.org/log4net/release/manual/faq.html#internalDebug In .net 1.1 MS made some changes and you may need to update your config files for more info see: http://www.thinktecture.com/Resources/R

RE: how to include % conversion pattern tokens

2004-07-30 Thread Nicko Cadell
Dan, The only way to change the patterns recognised by the PatternLayout is to actually change the PatternLayout and recompile the log4net assembly. You can write your own layout to do whatever you require and use that instead of the PatternLayout but that means that you may need to duplicate some

Data Types

2004-07-30 Thread Eric Seifert
Can I use a Text sql type for the ado appender? If so, what would I set as the size? If not, can I use a blob?