Skip to content

Commit 770e06e

Browse files
committed
* Improved logging code
* Added different log types
1 parent 299cf58 commit 770e06e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
3+
namespace MemPlus.Classes.LOG
4+
{
5+
/// <inheritdoc />
6+
/// <summary>
7+
/// A class that represent a change in the application
8+
/// </summary>
9+
internal class ApplicationLog : Log
10+
{
11+
/// <summary>
12+
/// Initialize a new ApplicationLog object
13+
/// </summary>
14+
internal ApplicationLog(string data)
15+
{
16+
LogType = LogType.Application;
17+
Data = data;
18+
Time = DateTime.Now;
19+
}
20+
}
21+
}

MemPlus/Classes/LOG/ILogMethods.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
3+
namespace MemPlus.Classes.LOG
4+
{
5+
internal interface ILogMethods
6+
{
7+
void AddData(string data);
8+
string GetData();
9+
DateTime GetDate();
10+
}
11+
}

0 commit comments

Comments
 (0)