logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. K Rahman" <skrah...@gmail.com>
Subject Re: Log4net does not works in production env
Date Fri, 23 Dec 2005 15:01:11 GMT
On 12/23/05, Nicko Cadell <nicko@neoworks.com> wrote:
> Do you get any output if you enable internal log4net debug and use the
> sysinternals debugview?
> http://logging.apache.org/log4net/release/faq.html#internalDebug
>

I did enabled debugging  but I was not sure how view. I downloaded
debugview and indeed I got the output.
As for the log it seems to be issue with the permission but I have
given aspnet account/ IUSR account and other accounts full rights to
that app folder as well as the log file.

Here is the text

[2956] log4net: FileAppender: Opening file for writing
[E:\www\l4n\mylog.Log] append [True]
[2956] log4net:ERROR [FileAppender] Unable to acquire lock on file
E:\www\l4n\mylog.Log. Access to the path "E:\www\l4n\mylog.Log" is
denied.
[2956] log4net:ERROR [FileAppender]
OpenFile(E:\www\l4n\mylog.Log,True) call failed.
[2956] LockStateException: The file is not currently locked
[2956]    at log4net.Appender.LockingStream.AssertLocked()
[2956]    at log4net.Appender.LockingStream.get_CanWrite()
[2956]    at System.IO.StreamWriter..ctor(Stream stream, Encoding
encoding, Int32 bufferSize)
[2956]    at System.IO.StreamWriter..ctor(Stream stream, Encoding encoding)
[2956]    at log4net.Appender.FileAppender.OpenFile(String fileName,
Boolean append)
[2956]    at log4net.Appender.FileAppender.SafeOpenFile(String
fileName, Boolean append)
[2956] log4net:ERROR [FileAppender] No output stream or file set for
the appender named [LogFileAppender].
[2956] log4net:ERROR [SmtpAppender] Error occurred while sending
e-mail notification.
[2956] System.Web.HttpException: Could not access 'CDO.Message'
object. ---> System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x8004020F): The server
rejected one or more recipient addresses. The server response was: 550
5.7.1 Unable to relay myemailid@mydomain.com
[2956]
[2956]    --- End of inner exception stack trace ---
[2956]    at System.RuntimeType.InvokeDispMethod(String name,
BindingFlags invokeAttr, Object target, Object[] args, Boolean[]
byrefModifiers, Int32 culture, String[] namedParameters)
[2956]    at System.RuntimeType.InvokeMember(String name, BindingFlags
invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters)
[2956]    at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object
obj, String methodName, Object[] args)
[2956]    --- End of inner exception stack trace ---
[2956]    at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object
obj, String methodName, Object[] args)
[2956]    at System.Web.Mail.CdoSysHelper.Send(MailMessage message)
[2956]    at System.Web.Mail.SmtpMail.Send(MailMessage message)
[2956]    at log4net.Appender.SmtpAppender.SendBuffer(LoggingEvent[] events)
[2956] log4net: FileAppender: Opening file for writing
[E:\www\l4n\Logs\mylog.Log] append [True]
[2956] log4net:ERROR [RollingFileAppender] Unable to acquire lock on
file E:\www\l4n\Logs\mylog.Log. Access to the path
"E:\plexwww\l4n\PMSLogs\PMSlog.log" is denied.
[2956] log4net:ERROR [RollingFileAppender]
OpenFile(E:\www\l4n\Logs\mylog.Log,True) call failed.
[2956] LockStateException: The file is not currently locked
[2956]    at log4net.Appender.LockingStream.AssertLocked()
[2956]    at log4net.Appender.LockingStream.get_CanWrite()
[2956]    at System.IO.StreamWriter..ctor(Stream stream, Encoding
encoding, Int32 bufferSize)
[2956]    at System.IO.StreamWriter..ctor(Stream stream, Encoding encoding)
[2956]    at log4net.Appender.FileAppender.OpenFile(String fileName,
Boolean append)
[2956]    at log4net.Appender.RollingFileAppender.OpenFile(String
fileName, Boolean append)
[2956]    at log4net.Appender.FileAppender.SafeOpenFile(String
fileName, Boolean append)
[2956] log4net:ERROR [RollingFileAppender] No output stream or file
set for the appender named [RollingLogFileAppender].
[384] EVENT="heartbeat";INTERVAL=30;MN_KEY_SEQ=<ctrl+alt+f1>;
[384] EVENT="update";MACADDR=:00:0d:56:bb:88:15;CRYPT=:0e:87:ef:29:e8:c6:10:82;
[1324] ASPI Polling Devices
[1324] ASPIPro PollBus
[1324] ASPIPro PollBus

Mime
View raw message