-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLog.cs
49 lines (44 loc) · 1016 Bytes
/
Log.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Youzee.Util.Logger
{
/**
* Class wich represents a log
*
* @copyright (C) Youzee (2012)
* @author Keyvan Akbary <keyvan@youzee.com>
* @version 1.0
*/
public class Log
{
public const string ERROR_LEVEL = "error";
public const string DEBUG_LEVEL = "debug";
public const string INFO_LEVEL = "debug";
public string Level
{
get;
private set;
}
public string Message
{
get;
private set;
}
public DateTime CreationDateTime {
get;
private set;
}
/**
* @param string logLevel
* @param string message
*/
public Log(string level, string message)
{
Level = level;
Message = message;
CreationDateTime = DateTime.Now;
}
}
}