#region Copyright notice and license // Copyright 2015 gRPC 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. #endregion using System; using System.Collections.Generic; namespace Grpc.Core.Logging { /// For logging messages. public interface ILogger { /// Returns a logger associated with the specified type. ILogger ForType(); /// Logs a message with severity Debug. void Debug(string message); /// Logs a formatted message with severity Debug. void Debug(string format, params object[] formatArgs); /// Logs a message with severity Info. void Info(string message); /// Logs a formatted message with severity Info. void Info(string format, params object[] formatArgs); /// Logs a message with severity Warning. void Warning(string message); /// Logs a formatted message with severity Warning. void Warning(string format, params object[] formatArgs); /// Logs a message and an associated exception with severity Warning. void Warning(Exception exception, string message); /// Logs a message with severity Error. void Error(string message); /// Logs a formatted message with severity Error. void Error(string format, params object[] formatArgs); /// Logs a message and an associated exception with severity Error. void Error(Exception exception, string message); } }