blob: de3c3584bdbd2153b1e7df61171adda3f94505ba (
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
26
27
28
29
30
|
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; }
/// <summary>
/// Gets or sets a value indicating whether this <see cref="ILogger"/> will be notified about logs without waiting for the logs queue.
/// </summary>
bool Immediate { get; set; }
}
}
|