public OsloCodeGeneratorLanguageService()
 {
     this.logger = EventLogger.CreateLogger("OsloCodeGeneratorLanguageService");
     this.logger.Log(EventLogEntryType.Information, "Entering: OsloCodeGeneratorLanguageService()");
     this.codeParser = OsloCodeGeneratorLanguages.GetOsloCodeGeneratorParser();
     this.templateParser = OsloCodeGeneratorLanguages.GetOsloCodeGeneratorTemplateParser();
     this.logger.Log(EventLogEntryType.Information, "Leaving: OsloCodeGeneratorLanguageService()");
 }
Example #2
0
 public static EventLogger CreateLogger(string name)
 {
     EventLogger result = null;
     if (EventLogger.loggers.TryGetValue(name, out result))
     {
         return result;
     }
     lock (EventLogger.mutex)
     {
         if (EventLogger.loggers.TryGetValue(name, out result))
         {
             return result;
         }
         result = new EventLogger(name);
         EventLogger.loggers.Add(name, result);
         return result;
     }
 }