blob: 25eff0969ceadc7f37f8354e826ff8694f534e20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.Logging
{
/// <summary>
/// Represents a logging mechanism capable of being registered as a logger on the library <see cref="LogManager"/>.
/// </summary>
public interface ILogger
{
/// <summary>
/// Called when a new log is available.
/// </summary>
/// <param name="log">The log.</param>
void OnLog(LogItemBase log);
/// <summary>
/// Gets or sets a value indicating whether this <see cref="ILogger"/> is enabled.
/// </summary>
bool Enabled { get; set; }
}
}
|