Some Questions on Clog

Dec 29, 2009 at 10:46 PM
Edited Dec 29, 2009 at 10:47 PM

Hi,

Just installed your Calcium framework and all seemded to be working.   Was able to use the templates to create a project and a module as per the tutorial video.   However the Log4net was not outputing to the Log4Net viewer.   Checked the output window and found a lot of errors being generated, the first of which are related to Clog.   See below   .Do I need to configure something to setup CLog.   Was expecting logging to work out of the box.   My environment is Windows 7 and VS 2008 Team Edition.

A second question.  Is there a link to documentation for your Calcium framework?   I have only been able to locate the three articles on CodeProject so far.

Clog Warning:EventLog source 'Clog' does not exist and could not be created. EventLog will not be written to.
Clog Warning: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
   at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
   at DanielVaughan.Logging.InternalLog.CreateEventLog() in D:\Calcium\Source\Clog\Clog\Logging\InternalLog.cs:line 57
   at DanielVaughan.Logging.InternalLog..cctor() in D:\Calcium\Source\Clog\Clog\Logging\InternalLog.cs:line 34
The Zone of the assembly that failed was:
MyComputer The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.    at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
   at System.Diagnostics.EventLog.SourceExists(String sourA first chance exception of type 'System.Security.SecurityException' occurred in System.dll
Clog Warning:EventLog source 'Clog' does not exist and could not be created. EventLog will not be written to.
Clog Warning: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
   at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
   at DanielVaughan.Logging.InternalLog.CreateEventLog() in D:\Calcium\Source\Clog\Clog\Logging\InternalLog.cs:line 57
   at DanielVaughan.Logging.InternalLog..cctor() in D:\Calcium\Source\Clog\Clog\Logging\InternalLog.cs:line 34
The Zone of the assembly that failed was:
MyComputer The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.    at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
   at DanielVaughan.Logging.InternalLog.CreateEventLog() in D:\Calcium\Source\Clog\Clog\Logging\InternalLog.cs:line 57
   at DanielVaughan.Logging.InternalLog..cctor() in D:\Calcium\Source\Clog\Clog\Logging\InternalLog.cs:line 34
Clog Debug:Initializing from config.
Coordinator
Dec 29, 2009 at 11:07 PM

Hi Steve,

By default Clog is attempting to write internal messages to Window's event log, and because it's InternalLogLevel is not set to None in the config, it is telling you about its difficulties. InternalLogLevel is rather like Log4Net's debug parameter.

The documentation for Calcium at this point are the Codeproject articles.

Cheers,

Daniel