-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLog.cs
31 lines (29 loc) · 943 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
using System;
namespace NetInterop.Routing
{
public static class Log
{
public static void Write(string category, string name)
{
Write(category, name, string.Empty);
}
public static void Write(string category, string name, string data)
{
if (String.IsNullOrEmpty(category))
{
throw new ArgumentNullException("category");
}
if (String.IsNullOrEmpty(category))
{
throw new ArgumentNullException("name");
}
category = category.ToUpper();
if (!RoutingController.DebugCategoryList.Contains(category))
{
return;
}
name = name.ToUpper();
RoutingController.VerboseOutput(String.Format("{0}:{1}{2}" + Environment.NewLine, category, name, ":" + data));
}
}
}