public Log ( |
||
severity | ||
message | string | |
리턴 | void |
private void Process(string file) { ILogger logger = new Logger(EventManager); try { logger.Log(string.Format("Starting Processing File: {0}", file)); InternalProcess(file); logger.Log(string.Format("Finished Processing File: {0}", file)); } catch(Exception ex) { logger.Log(string.Format("Failed Processing File: {0}", file), ex); } }
private void Process(string[] files) { ILogger logger = new Logger(EventManager); try { logger.Log(LogMessage.SeverityType.Debug, string.Format("Starting Processing {0} files: {1}", files.Length, string.Join(",", files))); InternalProcess(files, suiteName); logger.Log(LogMessage.SeverityType.Debug, string.Format("Finished Processing {0} files: {1}", files.Length, string.Join(",", files))); } catch(Exception ex) { string message = string.Format("Failed Processing {0} files: {1}\n{2}", files.Length, string.Join(",", files), ex); logger.Log(LogMessage.SeverityType.Error, message); } }