17 using System.ComponentModel.Composition;
18 using System.Globalization;
28 private const string DateFormat =
"yyyyMMdd HH:mm:ss";
29 private readonly Action<string> _debug;
30 private readonly Action<string> _trace;
31 private readonly Action<string> _error;
61 _error(DateTime.Now.ToString(
DateFormat, CultureInfo.InvariantCulture) +
" ERROR " + text);
73 _debug(DateTime.Now.ToString(
DateFormat, CultureInfo.InvariantCulture) +
" DEBUG " + text);
85 _trace(DateTime.Now.ToString(
DateFormat, CultureInfo.InvariantCulture) +
" TRACE " + text);