2017-07-05 11:41:19 +02:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017 ETH Zürich, Educational Development and Technology (LET)
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-07-07 15:46:32 +02:00
|
|
|
|
using System;
|
2017-07-05 17:21:52 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2017-07-06 18:18:39 +02:00
|
|
|
|
namespace SafeExamBrowser.Contracts.Logging
|
2017-07-05 11:41:19 +02:00
|
|
|
|
{
|
2017-07-06 18:18:39 +02:00
|
|
|
|
public interface ILogger
|
2017-07-05 11:41:19 +02:00
|
|
|
|
{
|
2017-07-06 18:18:39 +02:00
|
|
|
|
void Info(string message);
|
|
|
|
|
void Warn(string message);
|
|
|
|
|
void Error(string message);
|
2017-07-07 15:46:32 +02:00
|
|
|
|
void Error(string message, Exception exception);
|
|
|
|
|
void Log(string message);
|
|
|
|
|
void Log(ILogContent content);
|
2017-07-06 18:18:39 +02:00
|
|
|
|
void Subscribe(ILogObserver observer);
|
|
|
|
|
void Unsubscribe(ILogObserver observer);
|
2017-07-07 15:46:32 +02:00
|
|
|
|
IList<ILogContent> GetLog();
|
2017-07-05 11:41:19 +02:00
|
|
|
|
}
|
|
|
|
|
}
|