Title: RE: Including datetime stamp in the log messages.
how do i write to event log on
1) User
2) Machine Name
3) Client Machine Name.
thanks
Shiva
Ganapatiraju
New
York State
Office of Children
& Family Services
Information
Technology/SSOP Project
518.403.9056
[EMAIL PROTECTED]
http
I am new to log4net. I want to pass userid while logging how do I do it.
Thanks in advance
Shiva Ganapatiraju
New York State
Office of Children & Family Services
Information Technology/SSOP Project
518.403.9056
[EMAIL PROTECTED]
http://ocfs.state.nyenet/admin/ofm/rsu
--
AS SOON AS U LOGIN
set
log4net.MDC.Set("User", HttpContext.Current.User.Identity.Name)
In log4net.mdc you set all your custom fields and values it can pick up
from.
In your configuration file use
hope this helps.
Shiva Ganapatiraju
New York State
Office of Children & Family Services
Even after
log4net.ThreadContext.Properties("EventId") = 5
log4net.ThreadContext.Stacks("EventId").Push("5")
log.Error("Error Login Page.", ex)
I am getting this error.
The description for Event ID ( 0 ) in Source ( SSOPWebError ) cannot be
found. The local computer ma
Hi Ron,
I want to log into my LocalHost for errors. But does not seem to do
that.
http://Localhost/SSOPAppLog.txt"; />
Any help is appreciated.
With warm regards,
Shiva
Shiva Ganapatiraju
Developer - SSOP , NYS - OCFS
5
:\blah\blah) syntax or look into using a network-aware appender
like RemotingAppender, etc.
On 4/5/06, Ganapatiraju,
Shiva (OCFS) <[EMAIL PROTECTED]>
wrote:
Hi
Ron,I want to log into my LocalHost for errors. But does not
seem to dothat.type="log4net.Appender.RollingFileAppen
Hi Mathew,
We decided to write to c:\\temp on the
Server.
thank you and appreicate your
reply.
With warm regards,ShivaShiva
Ganapatiraju Developer – SSOP , NYS - OCFS518-473-7785 (Albany) : [EMAIL PROTECTED] Check out
our Engagement
Dashboard
http://sdssnet5/ocfs/admin/ofm/rsu
W
Title: Rolling File Appender
Hi,
I am using a rolling file appender. Can I create the files with Data Time stamp instead of creating file as log1, log2 or Log3.
Thanks
Shiva
This communication, together with any attachments hereto or links contained herein, is for the sole us