Created
July 5, 2011 03:07
-
-
Save dbuksbaum/1064195 to your computer and use it in GitHub Desktop.
ILog derivation for Caliburn.Micro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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