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.
38 lines
1.1 KiB
38 lines
1.1 KiB
// Author: Simon Gockner
|
|
// Created: 2020-02-08
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved.
|
|
|
|
using System;
|
|
|
|
namespace GBase.Logging.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// The main logging interface
|
|
/// </summary>
|
|
public interface ILog : IAsyncDisposable
|
|
{
|
|
/// <summary>
|
|
/// Initialize the <see cref="ILog"/>
|
|
/// </summary>
|
|
/// <returns>True if successful, false if not</returns>
|
|
bool InitializeLog();
|
|
|
|
/// <summary>
|
|
/// Set the <see cref="LogLevels"/> of the current <see cref="ILog"/> instance
|
|
/// </summary>
|
|
/// <param name="logLevel">The <see cref="LogLevels"/></param>
|
|
void SetLogLevel(LogLevels logLevel);
|
|
|
|
/// <summary>
|
|
/// Add an <see cref="ILogger"/> to the <see cref="ILog"/>
|
|
/// </summary>
|
|
/// <param name="logger">The <see cref="ILogger"/></param>
|
|
void AddLogger(ILogger logger);
|
|
|
|
/// <summary>
|
|
/// Remove an <see cref="ILogger"/> from the <see cref="ILog"/>
|
|
/// </summary>
|
|
/// <param name="logger">The <see cref="ILogger"/></param>
|
|
void RemoveLogger(ILogger logger);
|
|
}
|
|
} |