/// <summary> /// Sets the <see cref="Output"/>. /// </summary> /// <param name="output">Can not be null.</param> protected void SetOutput(ActivityLoggerOutput output) { if (output == null) { throw new ArgumentNullException("output"); } _output = output; }
/// <summary> /// Initializes a new <see cref="ActivityLogger"/> with a specific <see cref="Output"/> or null /// to postpone the setting of Output by using <see cref="SetOutput"/>. /// </summary> /// <param name="output">The output to use. Can be null.</param> protected ActivityLogger(ActivityLoggerOutput output) { _output = output; }
/// <summary> /// Initializes a new <see cref="ActivityLogger"/> with a <see cref="ActivityLoggerOutput"/> as its <see cref="Output"/>. /// </summary> public ActivityLogger() { _output = new ActivityLoggerOutput(this); }
/// <summary> /// Initializes a new <see cref="ActivityLogger"/> with a specific <see cref="Output"/> or null /// to postpone the setting of Output by using <see cref="SetOutput"/>. /// </summary> /// <param name="output">The output to use. Can be null.</param> protected ActivityLogger( ActivityLoggerOutput output ) { _output = output; }
/// <summary> /// Initializes a new <see cref="ActivityLogger"/> with a <see cref="ActivityLoggerOutput"/> as its <see cref="Output"/>. /// </summary> public ActivityLogger() { _output = new ActivityLoggerOutput( this ); }
/// <summary> /// Sets the <see cref="Output"/>. /// </summary> /// <param name="output">Can not be null.</param> protected void SetOutput( ActivityLoggerOutput output ) { if( output == null ) throw new ArgumentNullException( "output" ); _output = output; }