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.
23 lines
506 B
23 lines
506 B
using System;
|
|
using ZeroLevel.Logging;
|
|
|
|
namespace ZeroLevel.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();
|
|
}
|
|
} |