Example #1
0
 public Logger(IMessageCreator messageCreator,
               IMessagesDequeuer messagesDequeuer,
               ICallingStackFrameGetter callingStackFrameGetter,
               IContainer<Configuration.Configuration> configurationContainer)
 {
     _configurationContainer = configurationContainer;
     _messageCreator = messageCreator;
     _callingStackFrameGetter = callingStackFrameGetter;
     _messagesDequeuer = messagesDequeuer;
 }
Example #2
0
 public Logger(IMessageCreator messageCreator,
               IMessagesDequeuer messagesDequeuer,
               ICallingStackFrameGetter callingStackFrameGetter,
               IContainer <Configuration.Configuration> configurationContainer)
 {
     _configurationContainer  = configurationContainer;
     _messageCreator          = messageCreator;
     _callingStackFrameGetter = callingStackFrameGetter;
     _messagesDequeuer        = messagesDequeuer;
 }
Example #3
0
 public InternalLogger(
     IMessageCreator messageCreator, 
     ICallingStackFrameGetter callingStackFrameGetter, 
     IMessageTextFormatter messageTextFormatter)
 {
     _messageCreator = messageCreator;
     _callingStackFrameGetter = callingStackFrameGetter;
     _messageTextFormatter = messageTextFormatter;
     _filePath = string.Format("{0}{1}{2}.{3}.log",
         Path.GetTempPath(),
         Environment.NewLine,
         AppDomain.CurrentDomain.FriendlyName,
         Process.GetCurrentProcess().Id);
 }
Example #4
0
 public InternalLogger(
     IMessageCreator messageCreator,
     ICallingStackFrameGetter callingStackFrameGetter,
     IMessageTextFormatter messageTextFormatter)
 {
     _messageCreator          = messageCreator;
     _callingStackFrameGetter = callingStackFrameGetter;
     _messageTextFormatter    = messageTextFormatter;
     _filePath = string.Format("{0}{1}{2}.{3}.log",
                               Path.GetTempPath(),
                               Environment.NewLine,
                               AppDomain.CurrentDomain.FriendlyName,
                               Process.GetCurrentProcess().Id);
 }