Exemplo n.º 1
0
        /// <summary>
        /// Initialize instance
        /// </summary>
        /// <param name="configuration"></param>
        private void SetupCommunicationLogger(NancySerilogConfiguration configuration)
        {
            this.NancySerilogConfiguration =
                configuration ?? new NancySerilogConfiguration();

            this.NancySerilogConfiguration.Logger =
                configuration?.Logger ?? Log.Logger;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor with configuration
 /// </summary>
 /// <param name="logger"></param>
 public CommunicationLogger(NancySerilogConfiguration configuration)
 {
     this.SetupCommunicationLogger(configuration);
 }