moved structs and enums to Util
This commit is contained in:
parent
0fb04e7c20
commit
613eda62c2
@ -3,30 +3,6 @@ using System.Collections.Generic;
|
||||
|
||||
namespace SimpleLog {
|
||||
|
||||
[Flags]
|
||||
public enum LogLevel {
|
||||
Debug = 1,
|
||||
Info = 2,
|
||||
Warning = 4,
|
||||
Error = 8,
|
||||
Critical = 16
|
||||
}
|
||||
|
||||
public struct LineTerminator {
|
||||
/// <summary>
|
||||
/// Windows line terminator (CRLF)
|
||||
/// </summary>
|
||||
public static readonly string Windows = "\r\n";
|
||||
/// <summary>
|
||||
/// Macintosh line terminator (CR)
|
||||
/// </summary>
|
||||
public static readonly string Mac = "\r";
|
||||
/// <summary>
|
||||
/// Unix line terminator (LF)
|
||||
/// </summary>
|
||||
public static readonly string Unix = "\n";
|
||||
}
|
||||
|
||||
public class DefaultLogger : ILogger {
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,4 +1,31 @@
|
||||
namespace SimpleLog {
|
||||
using System;
|
||||
|
||||
namespace SimpleLog {
|
||||
|
||||
[Flags]
|
||||
public enum LogLevel {
|
||||
Debug = 1,
|
||||
Info = 2,
|
||||
Warning = 4,
|
||||
Error = 8,
|
||||
Critical = 16
|
||||
}
|
||||
|
||||
public struct LineTerminator {
|
||||
/// <summary>
|
||||
/// Windows line terminator (CRLF)
|
||||
/// </summary>
|
||||
public static readonly string Windows = "\r\n";
|
||||
/// <summary>
|
||||
/// Macintosh line terminator (CR)
|
||||
/// </summary>
|
||||
public static readonly string Mac = "\r";
|
||||
/// <summary>
|
||||
/// Unix line terminator (LF)
|
||||
/// </summary>
|
||||
public static readonly string Unix = "\n";
|
||||
}
|
||||
|
||||
public static class Util {
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user