| using System; |
| using System; |
| using System.Collections.Generic; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Linq; |
| using System.Text; |
| using System.Text; |
| using System.Threading.Tasks; |
| using System.Threading.Tasks; |
| |
| |
| namespace Playnite.SDK |
| namespace Playnite.SDK |
| { |
| { |
| /// <summary> |
| /// <summary> |
| /// Describes logger object used to write message into log file. |
| /// Describes logger object used to write message into log file. |
| /// </summary> |
| /// </summary> |
| public interface ILogger |
| public interface ILogger |
| { |
| { |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Info serverity. |
| /// Writes message to log with Info serverity. |
| /// </summary> |
| /// </summary> |
| /// <param name="message">Message to be added into log.</param> |
| /// <param name="message">Message to be added into log.</param> |
| void Info(string message); |
| void Info(string message); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Info serverity, including parsed exception. |
| /// Writes message to log with Info serverity, including parsed exception. |
| /// </summary> |
| /// </summary> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| void Info(Exception exception, string message); |
| void Info(Exception exception, string message); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Debug serverity. |
| /// Writes message to log with Debug serverity. |
| /// </summary> |
| /// </summary> |
| /// <param name="message">Message to be added into log.</param> |
| /// <param name="message">Message to be added into log.</param> |
| void Debug(string message); |
| void Debug(string message); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Debug serverity, including parsed exception. |
| /// Writes message to log with Debug serverity, including parsed exception. |
| /// </summary> |
| /// </summary> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| void Debug(Exception exception, string message); |
| void Debug(Exception exception, string message); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Warning serverity. |
| /// Writes message to log with Warning serverity. |
| /// </summary> |
| /// </summary> |
| /// <param name="message">Message to be added into log.</param> |
| /// <param name="message">Message to be added into log.</param> |
| void Warn(string message); |
| void Warn(string message); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Warning serverity, including parsed exception. |
| /// Writes message to log with Warning serverity, including parsed exception. |
| /// </summary> |
| /// </summary> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| void Warn(Exception exception, string message); |
| void Warn(Exception exception, string message); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Error serverity. |
| /// Writes message to log with Error serverity. |
| /// </summary> |
| /// </summary> |
| /// <param name="message">Message to be added into log.</param> |
| /// <param name="message">Message to be added into log.</param> |
| void Error(string message); |
| void Error(string message); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Writes message to log with Error serverity, including parsed exception. |
| /// Writes message to log with Error serverity, including parsed exception. |
| /// </summary> |
| /// </summary> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="exception">Message to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| /// <param name="message">Exception to be added into log.</param> |
| void Error(Exception exception, string message); |
| void Error(Exception exception, string message); |
. | |
| |
| |
| /// <summary> |
| |
| /// Writes message to log with Trace serverity. |
| |
| /// </summary> |
| |
| /// <param name="message">Message to be added into log.</param> |
| |
| void Trace(string message); |
| |
| |
| |
| /// <summary> |
| |
| /// Writes message to log with Trace serverity, including parsed exception. |
| |
| /// </summary> |
| |
| /// <param name="exception">Message to be added into log.</param> |
| |
| /// <param name="message">Exception to be added into log.</param> |
| |
| void Trace(Exception exception, string message); |
| } |
| } |
| } |
| } |
| |
| |