You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| 
 | |
| namespace BestHTTP.Logger
 | |
| {
 | |
|     /// <summary>
 | |
|     /// Available logging levels.
 | |
|     /// </summary>
 | |
|     public enum Loglevels : byte
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// All message will be logged.
 | |
|         /// </summary>
 | |
|         All,
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Only Informations and above will be logged.
 | |
|         /// </summary>
 | |
|         Information,
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Only Warnings and above will be logged.
 | |
|         /// </summary>
 | |
|         Warning,
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Only Errors and above will be logged.
 | |
|         /// </summary>
 | |
|         Error,
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Only Exceptions will be logged.
 | |
|         /// </summary>
 | |
|         Exception,
 | |
| 
 | |
|         /// <summary>
 | |
|         /// No logging will be occur.
 | |
|         /// </summary>
 | |
|         None
 | |
|     }
 | |
| 
 | |
|     public interface ILogger
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// The minimum severity to log
 | |
|         /// </summary>
 | |
|         Loglevels Level { get; set; }
 | |
|         string FormatVerbose { get; set; }
 | |
|         string FormatInfo { get; set; }
 | |
|         string FormatWarn { get; set; }
 | |
|         string FormatErr { get; set; }
 | |
|         string FormatEx { get; set; }
 | |
| 
 | |
|         void Verbose(string division, string verb);
 | |
|         void Information(string division, string info);
 | |
|         void Warning(string division, string warn);
 | |
|         void Error(string division, string err);
 | |
|         void Exception(string division, string msg, Exception ex);
 | |
|     }
 | |
| } |