/* * Copyright (c) 2018 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/. */ using System; using System.Collections.Generic; namespace SafeExamBrowser.Contracts.Logging { public interface ILogger { /// /// Logs the given message with severity DEBUG. /// /// void Debug(string message); /// /// Logs the given message with severity INFO. /// /// void Info(string message); /// /// Logs the given message with severity WARNING. /// /// void Warn(string message); /// /// Logs the given message with severity ERROR. /// /// void Error(string message); /// /// Logs the given message with severity ERROR and includes information about /// the specified exception (i.e. type, message and stacktrace). /// /// void Error(string message, Exception exception); /// /// Logs the given message as raw text. /// /// void Log(string message); /// /// Appends the given content to the log. /// /// void Log(ILogContent content); /// /// Suscribes an observer to the application log. /// /// void Subscribe(ILogObserver observer); /// /// Unsubscribes an observer from the application log. /// void Unsubscribe(ILogObserver observer); /// /// Returns a copy of the current log content. /// IList GetLog(); } }