mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
490 B
22 lines
490 B
using System;
|
|
|
|
namespace ZeroLevel.Services.Logging
|
|
{
|
|
/// <summary>
|
|
/// Message queue for logging
|
|
/// </summary>
|
|
internal interface ILogMessageBuffer : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Number of messages in the queue
|
|
/// </summary>
|
|
long Count { get; }
|
|
|
|
/// <summary>
|
|
/// Write message to the queue
|
|
/// </summary>
|
|
void Push(LogLevel level, string message);
|
|
|
|
Tuple<LogLevel, string> Take();
|
|
}
|
|
} |