moved structs and enums to Util

This commit is contained in:
tmont 2009-04-11 21:04:37 +00:00
parent 0fb04e7c20
commit 613eda62c2
2 changed files with 28 additions and 25 deletions

View File

@ -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>

View File

@ -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>