Skip to content

Instantly share code, notes, and snippets.

@dbuksbaum
Created July 5, 2011 03:07
Show Gist options
  • Save dbuksbaum/1064195 to your computer and use it in GitHub Desktop.
Save dbuksbaum/1064195 to your computer and use it in GitHub Desktop.
ILog derivation for Caliburn.Micro
/// <summary>
/// Extension to the ILog interface to allow for richer Error messages.
/// Based on a discussion in the Caliburn.Micro discussion forum on Codeplex.
/// See <see cref="http://caliburnmicro.codeplex.com/discussions/261656"/>.
/// </summary>
public interface ILogExtended : ILog
{
/// <summary>
/// Logs the message as error.
/// </summary>
/// <param name="format">A formatted message.</param>
/// <param name="args">Parameters to be injected into the formatted message.</param>
void Error(string format, params object[] args);
/// <summary>
/// Logs the exception.
/// </summary>
/// <param name="exception">The exception.</param>
/// <param name="format">A formatted message.</param>
/// <param name="args">Parameters to be injected into the formatted message.</param>
void Error(Exception exception, string format, params object[] args);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment