From 94d9897717deebb9e636e2055a1672bc8aaf461d Mon Sep 17 00:00:00 2001 From: ulysseskao <ulysseskao@gmail.com> Date: Sun, 01 May 2016 01:12:28 +0800 Subject: [PATCH] update logger --- /dev/null | 0 CCSTrace/TPower/DMMS/Model/CCS/CODELIST.cs | 9 ++++++++- CCSTrace/App_Data/.gitignore | 1 + 3 files changed, 9 insertions(+), 1 deletions(-) diff --git a/CCSTrace/.gitignore b/CCSTrace/.gitignore deleted file mode 100644 index 5e10aa9..0000000 --- a/CCSTrace/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/Service References/ diff --git a/CCSTrace/App_Data/.gitignore b/CCSTrace/App_Data/.gitignore new file mode 100644 index 0000000..453a615 --- /dev/null +++ b/CCSTrace/App_Data/.gitignore @@ -0,0 +1 @@ +/Logs/ diff --git a/CCSTrace/App_Data/ASPNETDB.MDF b/CCSTrace/App_Data/ASPNETDB.MDF deleted file mode 100644 index 1a874c8..0000000 --- a/CCSTrace/App_Data/ASPNETDB.MDF +++ /dev/null Binary files differ diff --git a/CCSTrace/App_Data/aspnetdb_log.ldf b/CCSTrace/App_Data/aspnetdb_log.ldf deleted file mode 100644 index d3dc99c..0000000 --- a/CCSTrace/App_Data/aspnetdb_log.ldf +++ /dev/null Binary files differ diff --git a/CCSTrace/CCS/Domain/Codelist.cs b/CCSTrace/CCS/Domain/Codelist.cs deleted file mode 100644 index 1552024..0000000 --- a/CCSTrace/CCS/Domain/Codelist.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace CCSTrace.CCS.Domain -{ - public class Codelist - { - public Codelist(int indexId, int keyId, string item, string content) - { - IndexId = indexId; - KeyId = keyId; - Item = item; - Content = content; - } - - public int IndexId { get; } - public int KeyId { get; } - - public string Item { get; } - - public string Content { get; } - } -} \ No newline at end of file diff --git a/CCSTrace/CCS/SEventLog.cs b/CCSTrace/CCS/SEventLog.cs deleted file mode 100644 index a4f260f..0000000 --- a/CCSTrace/CCS/SEventLog.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System.Diagnostics; - -namespace CCSTrace.CCS -{ - public class SEventLog - { - private const string SSource = "CCSTrace"; - private const string SLog = "Application"; - - public SEventLog() - { - } - - public void Debug(object message) - { - if (!EventLog.SourceExists(SSource)) - EventLog.CreateEventSource(SSource, SLog); - - //EventLog.WriteEntry(sSource, message.ToString()); - EventLog.WriteEntry(SSource, message.ToString(), EventLogEntryType.Information, 001); - } - - public void Error(object message) - { - //if (!EventLog.SourceExists(sSource)) - // EventLog.CreateEventSource(sSource, sLog); - - //EventLog.WriteEntry(sSource, message.ToString()); - //EventLog.WriteEntry(sSource, message.ToString(), EventLogEntryType.Error, 001); - } - - public void Fatal(object message) - { - if (!EventLog.SourceExists(SSource)) - EventLog.CreateEventSource(SSource, SLog); - - //EventLog.WriteEntry(sSource, message.ToString()); - EventLog.WriteEntry(SSource, message.ToString(), EventLogEntryType.FailureAudit, 001); - } - - public void Info(object message) - { - //if (!EventLog.SourceExists(sSource)) - // EventLog.CreateEventSource(sSource, sLog); - - //EventLog.WriteEntry(sSource, message.ToString()); - //EventLog.WriteEntry(sSource, message.ToString(), EventLogEntryType.Information, 001); - } - - public void Warn(object message) - { - if (!EventLog.SourceExists(SSource)) - EventLog.CreateEventSource(SSource, SLog); - - //EventLog.WriteEntry(sSource, message.ToString()); - EventLog.WriteEntry(SSource, message.ToString(), EventLogEntryType.Warning, 001); - } - - public void Close() - { - } - } -} \ No newline at end of file diff --git a/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.CODELIST.cs b/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.cs similarity index 92% rename from CCSTrace/TPower/DMMS/Model/CCS/CODELIST.CODELIST.cs rename to CCSTrace/TPower/DMMS/Model/CCS/CODELIST.cs index 0eac04f..f3fcb6b 100644 --- a/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.CODELIST.cs +++ b/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.cs @@ -58,7 +58,14 @@ OnCreated(); } - + public CODELIST(int indexid, int keyid, string item, string content) + { + INDEXID = indexid; + KEYID = keyid; + ITEM = item; + CONTENT = content; + } + /// <summary> /// There are no comments for INDEXID in the schema. /// </summary> diff --git a/CCSTrace/bin/Resources/Lib/Interop.TRACEROBJECTLib.DLL b/CCSTrace/bin/Resources/Lib/Interop.TRACEROBJECTLib.DLL deleted file mode 100644 index 5344b46..0000000 --- a/CCSTrace/bin/Resources/Lib/Interop.TRACEROBJECTLib.DLL +++ /dev/null Binary files differ diff --git a/CCSTrace/bin/Resources/Lib/csharp-logger.dll b/CCSTrace/bin/Resources/Lib/csharp-logger.dll deleted file mode 100644 index 3d864dc..0000000 --- a/CCSTrace/bin/Resources/Lib/csharp-logger.dll +++ /dev/null Binary files differ diff --git a/CCSTrace/bin/Resources/Lib/log4net.dll b/CCSTrace/bin/Resources/Lib/log4net.dll deleted file mode 100644 index ffc57e1..0000000 --- a/CCSTrace/bin/Resources/Lib/log4net.dll +++ /dev/null Binary files differ diff --git a/CCSTrace/bin/Resources/Lib/stlportstld.5.2.dll b/CCSTrace/bin/Resources/Lib/stlportstld.5.2.dll deleted file mode 100644 index 54eb01c..0000000 --- a/CCSTrace/bin/Resources/Lib/stlportstld.5.2.dll +++ /dev/null Binary files differ -- Gitblit v0.0.0-SNAPSHOT