Event Viewer

in Help Center
Hi all. My registry and nodes are install how windows services.
In Event Viewer can i found exception, which in StdErr(node) is current: !! unable load dll .... ?This exception in StdErr begin with !! . In event log which Type message is correspond this sign !!?
I can found in Event viewer only message: Node up, node down, replica master... and etc.( this message in StdErr begin with --, -! - exception,warning)
but in event viewer maybe message about: failed load server or not load dll?
Please Help!
In Event Viewer can i found exception, which in StdErr(node) is current: !! unable load dll .... ?This exception in StdErr begin with !! . In event log which Type message is correspond this sign !!?
I can found in Event viewer only message: Node up, node down, replica master... and etc.( this message in StdErr begin with --, -! - exception,warning)
but in event viewer maybe message about: failed load server or not load dll?
Please Help!
0
Comments
When you install icegridregistry/icegridnode as a Windows service, all logs go to the Windows event log (the Application log by default).
Error messages (prefixed with !! when using the stderr logger) are reported as errors, warnings messages (!-) are reported as warnings and trace messages (--) as informational messages.
Best regards,
Bernard
But, I m not found this event(see below) in Event Viewer (but in windows registry:Types Supported-(7) - EVENTLOG_ERROR_TYPE EVENTLOG_WARNING_TYPE EVENTLOG_INFORMATION_TYPE):
Why?
this events i can found in Event Viewer
but this event im not found
Only the IceGrid node logging goes to the Windows event log. The logging from servers started by the IceGrid node still goes to stderr which goes nowhere if the IceGrid node is started as a service.
To access the output of the servers you should configure the IceGrid.Node.Output property. With this property, servers started by the IceGrid node will redirect their stderr/stdout to files.
Cheers,
Benoit.
See this link on Microsoft web site for additional information on this.
Cheers,
Benoit.
I think i m need in file config ice box, is it?
The default logger in Ice for .NET writes its messages using the System.Diagnostics.Trace facility. By default, the Ice run time registers a ConsoleTraceListener that writes to stderr. You can disable the logging of messages via this trace listener by setting the property Ice.ConsoleListener to zero.
You can change the trace listener for your application via the application's configuration file.
In IceBox is config file. Im need in events such as:
Thus i could change config of Ice Box?
As explained earlier, there's currently no easy way to do this. The easiest is to redirect server tracing to files using the IceGrid.Node.Output property (to be set in the IceGrid node configuration file).
With .NET, it's possible to also redirect the tracing to the event log but this requires either some additional coding or a .NET application configuration file (iceboxnet.exe.config for iceboxnet.exe). It also requires that you create the event source (this requires administrative privileges). This is really nothing specific to Ice so this goes a bit beyond the free support we can provide here on the forums. The setup of event log trace listener is explained on the link I provided in my previous post (EventLogTraceListener Class (System.Diagnostics)).
So you could for instance add the following code to your IceBox service start method:
You will then need to make sure the "IceBox" event source exists. This can be done by creating a sample event with the correct source name ("IceBox" in the example above). You can execute the following command with a command prompt that has administrative privileges to create the event source:
For more information on this, please see Introduction to the EventLog Component from Microsoft web site.
Cheers,
Benoit
The last question:
Inside this key we must add a value specifies the location of the Ice run time DLL:
/v EventMessageFile /t REG_EXPAND_SZ /d C:\Ice\bin\ice34.dll - this for Ice patch2
/v EventMessageFile /t REG_EXPAND_SZ /d C:\Ice\bin\ice35.dll - this for services(Icegridregistry, icegridnode)
Which dll is for Ice box?
Can I change level this message?
The Ice .NET assembly or executables don't include a event message file so the easiest is to just use the message file from the C++ Ice DLL.
The Ice logger only traces "Information" messages. You will need to implement your own Ice C# logger if you want to trace errors/warnings with another level in the event log. See Custom Loggers - Ice 3.5 - ZeroC for more information on custom loggers. I'll add an item to our TODO list to improve this, it would indeed be better to trace errors/warnings with the correct level.
Cheers,
Benoit.
Cheers,
Jinn.