ILog.cs 917 B

1234567891011121314151617181920212223242526272829
  1. namespace Caliburn.Micro.Core {
  2. using System;
  3. /// <summary>
  4. /// A logger.
  5. /// </summary>
  6. public interface ILog {
  7. /// <summary>
  8. /// Logs the message as info.
  9. /// </summary>
  10. /// <param name="format">A formatted message.</param>
  11. /// <param name="args">Parameters to be injected into the formatted message.</param>
  12. void Info(string format, params object[] args);
  13. /// <summary>
  14. /// Logs the message as a warning.
  15. /// </summary>
  16. /// <param name="format">A formatted message.</param>
  17. /// <param name="args">Parameters to be injected into the formatted message.</param>
  18. void Warn(string format, params object[] args);
  19. /// <summary>
  20. /// Logs the exception.
  21. /// </summary>
  22. /// <param name="exception">The exception.</param>
  23. void Error(Exception exception);
  24. }
  25. }