|
When should I log a message to the event log? Is there an accepted best practice for whether a particular event...
Needs to be logged to the event log at all Is an error or a warning Is important enough info to logged as an info event in the event log...
Started by RichAmberale on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Log as an Error if you....
Log as a Warning if you have something to say that you think someone should know about.
Log as informational if you have something to say that you think someone might possibly read.
There's no single standard.
|
|
Hi All,
I have a windows service that fails to start under some circumstances. When it fails to start the sequence of events suggest that my .NET code in the service has probably run, but no event log messages appear.
Event log messages show up when the...
Started by peter on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Its unlikely the service will log much explicitly....
Thats the developers job :)
The event log requires explicit logging actions the starting code in a try..catch to capture the error message.
To the event log...
|
|
Hi. Is there a way to log an event into the windows event log with a specified eventid per message? I am using log4net v 1.2.10.
Started by Markus on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Log4net.ThreadContext.Properties["EventId"] = 5;
Just call this before you write your log messages (if you.
|
Ask your Facebook Friends
|
I'm using EntLib 4.1 for logging. When I have an exception handled in the Application_Error of Global.asax.cs, I log the error with a category of 'Error'. I assumed that the event log type would be 'Error', but instead the event log entry is written with...
Started by Even Mien on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Was the default event source was using "Enterprise Library Logging" in the Application event log, whichTry setting up a LogEntry object that looks more like this:
var log = new LogEntry { Category Enterprise Library....
|
|
To debug some code, I would like to view the Windows event log of a remote machine (target is Windows2003). With mmc.exe I can add the event log for a remote machine, but only if I have sufficient permissions. For this remote machine, they do not want...
Started by Frank Schwieterman on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For the security log, users need the privilege "Manage auditing and security log"
For the system and applciation logs you should.
Permissions to see the eventlog without granting you an account to login.. .
|
|
I am looking for tools that will allow me to aggregate and query event logs from multiple servers.
In my case, this is a webfarm and I need to be able to query the event logs for all of them in one place.
Can anyone recommend such a tool?
Started by Oded on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Http://www.tlhouse.co.uk/LogMeister/shop.shtml
There are a few products I am aware of that will do this:
System Center Ops Manager LogMeister (and EventMeister... .
EventMeister is one, at a pretty reasonable price.
There are a number of products that can do this .
|
|
Hi how I get an application to write debug text to the Event Log window in the Delphi Ide (BDS2006)
EDIT: how does one change the color of the text ?
Started by Charles Faiga on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Using dbgview it is possible to have colors, filters, // category... .
)); // source name if h <> 0 then ReportEvent(h, // event log handle EVENTLOG_ERROR_TYPE, // event type 0 log When you run your application in Delphi IDE.
|
|
I have a logging system where some events are repeated infinitely. for example:
12:03 - Restart attempted
12:03 - Restart failed
12:02 - Restart attempted
12:02 - Restart failed
12:01 - Restart attempted
12:01 - Restart failed
This might go on for days...
Started by Jon Clegg on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
One approach would be to coalesce matching entries that repeat within some time delta of each other, something like
12:03 - Restart attempted [3 times since 12:01] 12:03 - Restart failed [3 times since 12:01] 12:02 - Something 11:23 - Restart attempted... .
|
|
I would like to build an Appender (or something similar) that inspects Events and on certain conditions creates logs new Events.
An example would be and Escalating Appender that checks if a certain amount of identical Events get logged and if so logs ...
Started by Jens Schauder on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, you could log to....
Another would be to use an existing appender and then write some code that monitors the log.
Therefore, I propose a following.
Escalate log level).
The time has come to trigger your event (e.g.
|
|
Hi guys:
I've changed, with regedit, the storage location from C:\WINDOWS\system32\config\AppEvent.Evt to somewhere else.
After restarting computer, it seems it doesn't work out - Event Log still adopts original location to store the log fie.
Any step...
Answer Snippets (Read the full thread at serverfault):
In the right pane, double-clickThe procedure is outlined here: http://support.microsoft.com/kb/315417
Quoted:
To move Event Viewer log files to another location....
The event log that you want to move, for example, click Application.
|