/**
* Copyright 2018 The Nakama Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace Nakama
{
///
/// A logger which writes log messages from the client.
///
public interface ILogger
{
///
/// Log a message object with the DEBUG level.
///
/// The message object to log.
void Debug(object message);
///
/// Logs a formatted string with the DEBUG level.
///
/// A string with zero or more format items.
/// An object array with zero or more objects to format.
void DebugFormat(string format, params object[] args);
///
/// Log a message object with the INFO level.
///
/// The message object to log.
void Info(object message);
///
/// Logs a formatted string with the INFO level.
///
/// A string with zero or more format items.
/// An object array with zero or more objects to format.
void InfoFormat(string format, params object[] args);
///
/// Log a message object with the WARN level.
///
/// The message object to log.
void Warn(object message);
///
/// Logs a formatted string with the WARN level.
///
/// A string with zero or more format items.
/// An object array with zero or more objects to format.
void WarnFormat(string format, params object[] args);
///
/// Log a message object with the ERROR level.
///
/// The message object to log.
void Error(object message);
///
/// Logs a formatted string with the ERROR level.
///
/// A string with zero or more format items.
/// An object array with zero or more objects to format.
void ErrorFormat(string format, params object[] args);
}
}