├── .travis.yml
├── Reference
├── SuperSocket
│ ├── Net40
│ │ ├── Debug
│ │ │ ├── supersocket.cmd
│ │ │ ├── supersocket.sh
│ │ │ ├── log4net.dll
│ │ │ ├── SuperSocket.Dlr.dll
│ │ │ ├── SuperSocket.Dlr.pdb
│ │ │ ├── SuperSocket.Agent.exe
│ │ │ ├── SuperSocket.Agent.pdb
│ │ │ ├── SuperSocket.Common.dll
│ │ │ ├── SuperSocket.Common.pdb
│ │ │ ├── Microsoft.Scripting.dll
│ │ │ ├── SuperSocket.Facility.dll
│ │ │ ├── SuperSocket.Facility.pdb
│ │ │ ├── SuperSocket.ProtoBase.dll
│ │ │ ├── SuperSocket.ProtoBase.pdb
│ │ │ ├── SuperSocket.SocketBase.dll
│ │ │ ├── SuperSocket.SocketBase.pdb
│ │ │ ├── SuperSocket.SocketEngine.dll
│ │ │ ├── SuperSocket.SocketEngine.pdb
│ │ │ ├── SuperSocket.SocketService.exe
│ │ │ ├── SuperSocket.SocketService.pdb
│ │ │ ├── SuperSocket.SocketService.exe.config
│ │ │ ├── Config
│ │ │ │ ├── log4net.config
│ │ │ │ └── log4net.unix.config
│ │ │ ├── SuperSocket.Facility.XML
│ │ │ └── SuperSocket.Dlr.XML
│ │ └── Release
│ │ │ ├── supersocket.cmd
│ │ │ ├── supersocket.sh
│ │ │ ├── log4net.dll
│ │ │ ├── SuperSocket.Dlr.dll
│ │ │ ├── SuperSocket.Dlr.pdb
│ │ │ ├── Microsoft.Scripting.dll
│ │ │ ├── SuperSocket.Agent.exe
│ │ │ ├── SuperSocket.Agent.pdb
│ │ │ ├── SuperSocket.Common.dll
│ │ │ ├── SuperSocket.Common.pdb
│ │ │ ├── SuperSocket.Facility.dll
│ │ │ ├── SuperSocket.Facility.pdb
│ │ │ ├── SuperSocket.ProtoBase.dll
│ │ │ ├── SuperSocket.ProtoBase.pdb
│ │ │ ├── SuperSocket.SocketBase.dll
│ │ │ ├── SuperSocket.SocketBase.pdb
│ │ │ ├── SuperSocket.SocketEngine.dll
│ │ │ ├── SuperSocket.SocketEngine.pdb
│ │ │ ├── SuperSocket.SocketService.exe
│ │ │ ├── SuperSocket.SocketService.pdb
│ │ │ ├── SuperSocket.SocketService.exe.config
│ │ │ ├── Config
│ │ │ ├── log4net.config
│ │ │ └── log4net.unix.config
│ │ │ ├── SuperSocket.Facility.XML
│ │ │ └── SuperSocket.Dlr.XML
│ └── Net45
│ │ ├── Debug
│ │ ├── supersocket.cmd
│ │ ├── supersocket.sh
│ │ ├── log4net.dll
│ │ ├── SuperSocket.Dlr.dll
│ │ ├── SuperSocket.Dlr.pdb
│ │ ├── SuperSocket.Agent.exe
│ │ ├── SuperSocket.Agent.pdb
│ │ ├── SuperSocket.Common.dll
│ │ ├── SuperSocket.Common.pdb
│ │ ├── Microsoft.Scripting.dll
│ │ ├── SuperSocket.Facility.dll
│ │ ├── SuperSocket.Facility.pdb
│ │ ├── SuperSocket.ProtoBase.dll
│ │ ├── SuperSocket.ProtoBase.pdb
│ │ ├── SuperSocket.SocketBase.dll
│ │ ├── SuperSocket.SocketBase.pdb
│ │ ├── SuperSocket.SocketEngine.dll
│ │ ├── SuperSocket.SocketEngine.pdb
│ │ ├── SuperSocket.SocketService.exe
│ │ ├── SuperSocket.SocketService.pdb
│ │ ├── SuperSocket.SocketService.exe.config
│ │ ├── Config
│ │ │ ├── log4net.config
│ │ │ └── log4net.unix.config
│ │ ├── SuperSocket.Facility.XML
│ │ └── SuperSocket.Dlr.XML
│ │ └── Release
│ │ ├── supersocket.cmd
│ │ ├── supersocket.sh
│ │ ├── log4net.dll
│ │ ├── SuperSocket.Dlr.dll
│ │ ├── SuperSocket.Dlr.pdb
│ │ ├── Microsoft.Scripting.dll
│ │ ├── SuperSocket.Agent.exe
│ │ ├── SuperSocket.Agent.pdb
│ │ ├── SuperSocket.Common.dll
│ │ ├── SuperSocket.Common.pdb
│ │ ├── SuperSocket.Facility.dll
│ │ ├── SuperSocket.Facility.pdb
│ │ ├── SuperSocket.ProtoBase.dll
│ │ ├── SuperSocket.ProtoBase.pdb
│ │ ├── SuperSocket.SocketBase.dll
│ │ ├── SuperSocket.SocketBase.pdb
│ │ ├── SuperSocket.SocketEngine.dll
│ │ ├── SuperSocket.SocketEngine.pdb
│ │ ├── SuperSocket.SocketService.exe
│ │ ├── SuperSocket.SocketService.pdb
│ │ ├── SuperSocket.SocketService.exe.config
│ │ ├── Config
│ │ ├── log4net.config
│ │ └── log4net.unix.config
│ │ ├── SuperSocket.Facility.XML
│ │ └── SuperSocket.Dlr.XML
└── nunit.framework.dll
├── Base
├── packages.config
├── ILoggingDeserializerMetadata.cs
├── ILoggingDeserializer.cs
├── Properties
│ └── AssemblyInfo.cs
├── LoggingDeserializerMetadataAttribute.cs
├── XmlElementParser.cs
├── LogMaster4Net.Base.csproj
└── XmlLoggingDeserializer.cs
├── MasterServer
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── LoggingSession.cs
├── LoggingPackageInfo.cs
├── LoggingDeserializerCompositeTarget.cs
├── SuperSocket.SocketService.exe.config
├── Config
│ ├── nlog.config
│ ├── nlog.unix.config
│ ├── log4net.unix.config
│ └── log4net.config
├── LogReceiveFilter.cs
├── LogMasterServer.cs
└── LogMaster4Net.MasterServer.csproj
├── NLogAdapter
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── NLogLoggingDeserializer.cs
└── LogMaster4Net.NLogAdapter.csproj
├── Log4NetAdapter
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── Log4NetLoggingDeserializer.cs
└── LogMaster4Net.Log4NetAdapter.csproj
├── dotnet
├── LogMaster4Net.MasterServer
│ ├── ServerConfig.cs
│ ├── LogMaster4Net.MasterServer.csproj
│ └── Program.cs
├── .vscode
│ ├── tasks.json
│ └── launch.json
├── LogMaster4Net.NLogAdapter
│ └── LogMaster4Net.NLogAdapter.csproj
├── LogMaster4Net.Log4NetAdapter
│ └── LogMaster4Net.Log4NetAdapter.csproj
└── LogMaster4Net.Base
│ ├── LocationInfo.cs
│ ├── LogMaster4Net.Base.csproj
│ └── LoggingData.cs
├── Test
├── packages.config
├── NLogTest.cs
├── Log4NetTest.cs
├── Asserts
│ ├── log4net
│ │ ├── SingleLog.xml
│ │ ├── MultipleLog.xml
│ │ └── ExceptionLog.xml
│ └── nlog
│ │ └── SingleLog.xml
├── Properties
│ └── AssemblyInfo.cs
├── UnitTest.cs
└── Test.csproj
├── GlobalAssemblyInfo.cs
├── README.CN.md
├── .vscode
├── tasks.json
└── launch.json
├── README.md
├── Log4Net.CN.md
├── Log4Net.md
├── NLog.CN.md
├── NLog.md
├── .gitattributes
├── LogMaster4Net.sln
├── .gitignore
└── LICENSE
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: csharp
2 | solution: LogMaster4Net.sln
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/supersocket.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | SuperSocket.SocketService.exe -c %1 %2
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/supersocket.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | SuperSocket.SocketService.exe -c %1 %2
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/supersocket.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | SuperSocket.SocketService.exe -c %1 %2
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/supersocket.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | SuperSocket.SocketService.exe -c %1 %2
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/supersocket.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | mono SuperSocket.SocketService.exe -c $1 $2
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/supersocket.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | mono SuperSocket.SocketService.exe -c $1 $2
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/supersocket.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | mono SuperSocket.SocketService.exe -c $1 $2
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/supersocket.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | mono SuperSocket.SocketService.exe -c $1 $2
--------------------------------------------------------------------------------
/Reference/nunit.framework.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/nunit.framework.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/log4net.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/log4net.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/log4net.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/log4net.dll
--------------------------------------------------------------------------------
/Base/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Dlr.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Dlr.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Dlr.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Dlr.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Dlr.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Dlr.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Dlr.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Dlr.pdb
--------------------------------------------------------------------------------
/MasterServer/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Agent.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Agent.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Agent.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Agent.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Common.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Common.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Dlr.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Dlr.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Dlr.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Dlr.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Agent.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Agent.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Agent.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Agent.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Common.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Common.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Dlr.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Dlr.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Dlr.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Dlr.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/Microsoft.Scripting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/Microsoft.Scripting.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Facility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Facility.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Facility.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.Facility.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.ProtoBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.ProtoBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.ProtoBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.ProtoBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/Microsoft.Scripting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/Microsoft.Scripting.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Agent.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Agent.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Agent.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Agent.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Common.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Common.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/Microsoft.Scripting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/Microsoft.Scripting.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Facility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Facility.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Facility.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.Facility.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.ProtoBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.ProtoBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.ProtoBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.ProtoBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/Microsoft.Scripting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/Microsoft.Scripting.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Agent.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Agent.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Agent.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Agent.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Common.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Common.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Facility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Facility.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Facility.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.Facility.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.ProtoBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.ProtoBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.ProtoBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.ProtoBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Facility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Facility.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Facility.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.Facility.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.ProtoBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.ProtoBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.ProtoBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.ProtoBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketEngine.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketEngine.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketEngine.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketEngine.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketService.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketService.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketService.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketService.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.SocketBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.SocketBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.SocketBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.SocketBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.SocketEngine.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.SocketEngine.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.SocketEngine.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.SocketEngine.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketEngine.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketEngine.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketEngine.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketEngine.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketService.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketService.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketService.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketService.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.SocketBase.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.SocketBase.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.SocketBase.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.SocketBase.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.SocketEngine.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.SocketEngine.dll
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.SocketEngine.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.SocketEngine.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.SocketService.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.SocketService.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.SocketService.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net40/Release/SuperSocket.SocketService.pdb
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.SocketService.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.SocketService.exe
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.SocketService.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kerryjiang/LogMaster4Net/HEAD/Reference/SuperSocket/Net45/Release/SuperSocket.SocketService.pdb
--------------------------------------------------------------------------------
/NLogAdapter/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Log4NetAdapter/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.MasterServer/ServerConfig.cs:
--------------------------------------------------------------------------------
1 | public class ServerConfig
2 | {
3 | public ListenerConfig[] Listners { get; set; }
4 | }
5 |
6 | public class ListenerConfig
7 | {
8 | public string Ip { get; set; }
9 |
10 | public int Port { get; set; }
11 | }
--------------------------------------------------------------------------------
/Test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Base/ILoggingDeserializerMetadata.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace LogMaster4Net.Base
7 | {
8 | public interface ILoggingDeserializerMetadata
9 | {
10 | string Name { get; }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Base/ILoggingDeserializer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using AnyLog;
6 |
7 | namespace LogMaster4Net.Base
8 | {
9 | public interface ILoggingDeserializer
10 | {
11 | IList Deserialize(string log);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Base/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | [assembly: AssemblyTitle("LogMaster4Net.Base")]
6 | [assembly: AssemblyDescription("LogMaster4Net.Base")]
7 | [assembly: AssemblyConfiguration("")]
8 | [assembly: ComVisible(false)]
9 | [assembly: Guid("e04d7528-dcb1-4056-a3b5-9ab4a32f0839")]
10 |
--------------------------------------------------------------------------------
/NLogAdapter/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | [assembly: AssemblyTitle("LogMaster4Net.NLogAdapter")]
6 | [assembly: AssemblyDescription("LogMaster4Net.NLogAdapter")]
7 | [assembly: AssemblyConfiguration("")]
8 | [assembly: ComVisible(false)]
9 | [assembly: Guid("d527fbea-c7d9-4fdd-aa3a-900920e452ff")]
10 |
--------------------------------------------------------------------------------
/MasterServer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 |
6 | [assembly: AssemblyTitle("LogMaster4Net.MasterServer")]
7 | [assembly: AssemblyDescription("LogMaster4Net.MasterServer")]
8 | [assembly: AssemblyConfiguration("")]
9 | [assembly: ComVisible(false)]
10 | [assembly: Guid("237ba32d-72ae-44be-8261-96edb29b9412")]
11 |
--------------------------------------------------------------------------------
/Log4NetAdapter/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 |
6 | [assembly: AssemblyTitle("LogMaster4Net.Log4NetAdapter")]
7 | [assembly: AssemblyDescription("LogMaster4Net.Log4NetAdapter")]
8 | [assembly: AssemblyConfiguration("")]
9 | [assembly: ComVisible(false)]
10 | [assembly: Guid("1da081e3-d276-4479-bf23-c91e817ac9c9")]
11 |
--------------------------------------------------------------------------------
/GlobalAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 |
6 | [assembly: AssemblyCompany("LogMaster4Net")]
7 | [assembly: AssemblyProduct("LogMaster4Net")]
8 | [assembly: AssemblyCopyright("Copyright © 2015")]
9 | [assembly: AssemblyTrademark("")]
10 | [assembly: AssemblyCulture("")]
11 | [assembly: AssemblyVersion("0.2.0.0")]
12 | [assembly: AssemblyFileVersion("0.2.0.0")]
13 |
--------------------------------------------------------------------------------
/dotnet/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.1.0",
3 | "command": "dotnet",
4 | "isShellCommand": true,
5 | "args": [],
6 | "tasks": [
7 | {
8 | "taskName": "build",
9 | "args": [
10 | "${workspaceRoot}/LogMaster4Net.MasterServer/LogMaster4Net.MasterServer.csproj"
11 | ],
12 | "isBuildCommand": true,
13 | "problemMatcher": "$msCompile"
14 | }
15 | ]
16 | }
--------------------------------------------------------------------------------
/MasterServer/LoggingSession.cs:
--------------------------------------------------------------------------------
1 | using SuperSocket.SocketBase;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 |
7 | namespace LogMaster4Net.MasterServer
8 | {
9 | public class LoggingSession : AppSession
10 | {
11 | internal new LogMasterServer AppServer
12 | {
13 | get { return base.AppServer as LogMasterServer; }
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/README.CN.md:
--------------------------------------------------------------------------------
1 | LogMaster4Net [](https://travis-ci.org/kerryjiang/LogMaster4Net)
2 | =============
3 |
4 | **LogMaster4Net** 是一个能够接收其他程序发来的日志信息并将它们按照你的要求的来处理的日志服务器软件。 它能帮助你在一个中心位置管理多个程序的日志。因此如果在你的系统中有很多程序在运行而且他们都有自己的日志功能的话,本软件将会对你非常有用。
5 |
6 | **LogMaster4Net** 实际上是一个基于 **SuperSocket** 的 UDP 服务器。
7 |
8 |
9 | - [LogMaster4Net用法之Log4Net](Log4Net.CN.md)
10 | - [LogMaster4Net用法之NLog](NLog.CN.md)
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Test/NLogTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using LogMaster4Net.Base;
7 | using LogMaster4Net.NLogAdapter;
8 |
9 | namespace Test
10 | {
11 | public class NLogTest : UnitTestBase
12 | {
13 | protected override ILoggingDeserializer GetLoggingDeserializer()
14 | {
15 | return new NLogLoggingDeserializer();
16 | }
17 |
18 | protected override string GetAssertSubDir()
19 | {
20 | return "nlog";
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=733558
3 | // for the documentation about the tasks.json format
4 | "version": "0.1.0",
5 | "command": "dotnet",
6 | "isShellCommand": true,
7 | "args": [],
8 | "options":{
9 | "cwd": "${workspaceRoot}/dotnet/LogMaster4Net.MasterServer"
10 | },
11 | "tasks": [
12 | {
13 | "taskName": "build",
14 | "args": [ ],
15 | "isBuildCommand": true,
16 | "showOutput": "silent",
17 | "problemMatcher": "$msCompile"
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/Test/Log4NetTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using LogMaster4Net.Base;
7 | using LogMaster4Net.Log4NetAdapter;
8 |
9 | namespace Test
10 | {
11 | public class Log4NetTest : UnitTestBase
12 | {
13 | protected override ILoggingDeserializer GetLoggingDeserializer()
14 | {
15 | return new Log4NetLoggingDeserializer();
16 | }
17 |
18 | protected override string GetAssertSubDir()
19 | {
20 | return "log4net";
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Test/Asserts/log4net/SingleLog.xml:
--------------------------------------------------------------------------------
1 |
2 | Hello World
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | LogMaster4Net [](https://travis-ci.org/kerryjiang/LogMaster4Net)
2 | =============
3 |
4 | **LogMaster4Net** is a central log server which can receive log messages of your other applications and organize them as your demand. It can help you to manage your all applications log messages in a central place. So if you have lots of different applications running and most of them have their own logging, this project will be pretty useful for you.
5 |
6 | **LogMaster4Net** actually is a UDP server which is base on **SuperSocket**
7 |
8 |
9 | - [Usage for Log4Net](Log4Net.md)
10 | - [Usage for NLog](NLog.md)
--------------------------------------------------------------------------------
/Test/Asserts/nlog/SingleLog.xml:
--------------------------------------------------------------------------------
1 |
2 | Hello World
3 |
4 |
5 | 5
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/MasterServer/LoggingPackageInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using AnyLog;
6 | using LogMaster4Net.Base;
7 | using SuperSocket.ProtoBase;
8 |
9 | namespace LogMaster4Net.MasterServer
10 | {
11 | public class LoggingPackageInfo : IPackageInfo
12 | {
13 | private const string m_PackageKey = "Logging";
14 |
15 | public LoggingPackageInfo(IList data)
16 | {
17 | Data = data;
18 | }
19 | public IList Data { get; private set; }
20 |
21 | public string Key
22 | {
23 | get { return m_PackageKey; }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Base/LoggingDeserializerMetadataAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | #if DOTNETCORE
4 | using System.Composition;
5 | #else
6 | using System.ComponentModel.Composition;
7 | #endif
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace LogMaster4Net.Base
12 | {
13 | [MetadataAttribute]
14 | [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
15 | public class LoggingDeserializerMetadataAttribute : ExportAttribute, ILoggingDeserializerMetadata
16 | {
17 | public string Name { get; private set; }
18 |
19 | public LoggingDeserializerMetadataAttribute(string name)
20 | {
21 | Name = name;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/dotnet/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": ".NET Core Launch (console)",
6 | "type": "coreclr",
7 | "request": "launch",
8 | "preLaunchTask": "build",
9 | "program": "${workspaceRoot}/LogMaster4Net.MasterServer/bin/Debug/netcoreapp1.1/LogMaster4Net.MasterServer.dll",
10 | "args": [],
11 | "cwd": "${workspaceRoot}/LogMaster4Net.MasterServer",
12 | "console": "internalConsole",
13 | "stopAtEntry": false,
14 | "internalConsoleOptions": "openOnSessionStart"
15 | },
16 | {
17 | "name": ".NET Core Attach",
18 | "type": "coreclr",
19 | "request": "attach",
20 | "processId": "${command:pickProcess}"
21 | }
22 | ]
23 | }
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": ".NET Core Launch (console)",
6 | "type": "coreclr",
7 | "request": "launch",
8 | "env": {
9 | "cwd": "${workspaceRoot}/dotnet/LogMaster4Net.MasterServer"
10 | },
11 | "preLaunchTask": "build",
12 | "program": "${workspaceRoot}/dotnet/LogMaster4Net.MasterServer/bin/Debug/netcoreapp1.0/LogMaster4Net.MasterServer.dll",
13 | "args": [],
14 | "cwd": "${workspaceRoot}/dotnet/LogMaster4Net.MasterServer",
15 | "stopAtEntry": false,
16 | "externalConsole": false
17 | },
18 | {
19 | "name": ".NET Core Attach",
20 | "type": "coreclr",
21 | "request": "attach",
22 | "processId": 0
23 | }
24 | ]
25 | }
--------------------------------------------------------------------------------
/MasterServer/LoggingDeserializerCompositeTarget.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using LogMaster4Net.Base;
6 | using SuperSocket.Common;
7 | using SuperSocket.SocketBase.CompositeTargets;
8 | using SuperSocket.SocketBase.Config;
9 |
10 | namespace LogMaster4Net.MasterServer
11 | {
12 | class LoggingDeserializerCompositeTarget : SingleResultCompositeTargetCore
13 | {
14 | public LoggingDeserializerCompositeTarget(Action callback)
15 | : base((config) => config.Options.GetValue("loggingDeserializer"), callback, true)
16 | {
17 |
18 | }
19 |
20 | protected override bool MetadataNameEqual(ILoggingDeserializerMetadata metadata, string name)
21 | {
22 | return metadata.Name.Equals(name, StringComparison.OrdinalIgnoreCase);
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.SocketService.exe.config:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.SocketService.exe.config:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.SocketService.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.SocketService.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Log4Net.CN.md:
--------------------------------------------------------------------------------
1 | LogMaster4Net 用法之 Log4Net
2 | =============
3 |
4 | 1. 所需的程序集
5 |
6 | - log4net.dll
7 | - AnyLog.Log4Net.dll
8 | - LogMaster4Net.Log4NetAdapter.dll
9 |
10 |
11 |
12 |
13 | 2. 服务器配置
14 |
15 |
24 |
25 |
26 | 3. 服务日志配置文件
27 |
28 | \Config\log4net.config: 服务器自己的日志配置文件;
29 | \Config\log4net.[LogAppName].Config : 名为[LogAppName]的日志配置文件;
30 |
31 | 4. 程序设置
32 | - 设置 LogAppName
33 |
34 | log4net.GlobalContext.Properties["LogAppName"] = "MyTool1";
35 |
36 | - 日志配置
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/MasterServer/SuperSocket.SocketService.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Test/Asserts/log4net/MultipleLog.xml:
--------------------------------------------------------------------------------
1 |
2 | Current Time: 09/19/2014 20:52:40
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | Current Time: 09/19/2014 20:52:42
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.NLogAdapter/LogMaster4Net.NLogAdapter.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0.2.0
5 | netstandard1.3
6 | portable
7 | LogMaster4Net.NLogAdapter
8 | LogMaster4Net.NLogAdapter
9 | $(PackageTargetFallback);portable-net45+win8
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | $(DefineConstants);DOTNETCORE
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.Log4NetAdapter/LogMaster4Net.Log4NetAdapter.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0.2.0
5 | netstandard1.3
6 | portable
7 | LogMaster4Net.Log4NetAdapter
8 | LogMaster4Net.Log4NetAdapter
9 | $(PackageTargetFallback);portable-net45+win8
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | $(DefineConstants);DOTNETCORE
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/MasterServer/Config/nlog.config:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
17 |
23 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/MasterServer/LogReceiveFilter.cs:
--------------------------------------------------------------------------------
1 | using SuperSocket.ProtoBase;
2 | using SuperSocket.SocketBase;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 |
8 | namespace LogMaster4Net.MasterServer
9 | {
10 | public class LogReceiveFilter : IReceiveFilter
11 | {
12 | public LoggingPackageInfo Filter(BufferList data, out int rest)
13 | {
14 | var session = AppContext.CurrentSession as LoggingSession;
15 | var loggingDeserialzier = session.AppServer.LoggingDeserializer;
16 |
17 | rest = 0;
18 |
19 | using (var reader = this.GetBufferReader(data))
20 | {
21 | var logging = reader.ReadString(data.Total, Encoding.UTF8);
22 |
23 | try
24 | {
25 | return new LoggingPackageInfo(loggingDeserialzier.Deserialize(logging));
26 | }
27 | catch(Exception e)
28 | {
29 | session.Logger.ErrorFormat("Failed to deserialize the logging:\r\n{0}", logging);
30 | throw e;
31 | }
32 | }
33 | }
34 |
35 | public IReceiveFilter NextReceiveFilter { get; private set; }
36 |
37 | public void Reset()
38 | {
39 |
40 | }
41 |
42 | public FilterState State { get; private set; }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/MasterServer/Config/nlog.unix.config:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
17 |
23 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/Log4Net.md:
--------------------------------------------------------------------------------
1 | LogMaster4Net Usage for Log4Net
2 | =============
3 |
4 | 1. Required Assemblies
5 |
6 | - log4net.dll
7 | - AnyLog.Log4Net.dll
8 | - LogMaster4Net.Log4NetAdapter.dll
9 |
10 |
11 |
12 | 2. Server Configuration
13 |
14 |
24 |
25 |
26 | 3. Server Logging Configuration
27 |
28 | \Config\log4net.config: the logging confuguration of the server self;
29 | \Config\log4net.[LogAppName].Config : the logging configuration for your application whose name is [LogAppName]};
30 |
31 | 4. Application Setting
32 | - Set LogAppName
33 |
34 | log4net.GlobalContext.Properties["LogAppName"] = "MyTool1";
35 |
36 | - Logging Configuration
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.MasterServer/LogMaster4Net.MasterServer.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp1.1
5 | portable
6 | LogMaster4Net.MasterServer
7 | Exe
8 | LogMaster4Net.MasterServer
9 | $(PackageTargetFallback);dnxcore50;portable-net45+win8
10 | 1.0.4
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Test")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Test")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("9e1d22fe-dff4-4f11-9338-6a9e7658b2fe")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/NLog.CN.md:
--------------------------------------------------------------------------------
1 | LogMaster4Net 用法之 NLog
2 | =============
3 |
4 | 1. 所需的程序集
5 |
6 | - NLog.dll
7 | - AnyLog.NLog.dll
8 | - LogMaster4Net.NLogAdapter.dll
9 |
10 |
11 |
12 |
13 | 2. 服务器配置
14 |
15 |
25 |
26 |
27 | 3. 服务日志配置文件
28 |
29 | \Config\nlog.config: the logging confuguration of the server self;
30 | \Config\nlog.[LogAppName].Config : the logging configuration for your application whose name is [LogAppName]};
31 |
32 | 4. 程序设置
33 |
34 | - 日志 Target 配置
35 |
36 |
41 |
42 |
43 | - 设置 LogAppName
44 |
45 | LogAppName is defined in the layout attribute of target configuration as the field "appInfo", please replace it to the value you want:
46 |
47 | layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:**appInfo=[LogAppName]**:includeNDC=true:includeNLogData=true}"
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/NLog.md:
--------------------------------------------------------------------------------
1 | LogMaster4Net Usage for NLog
2 | =============
3 |
4 | 1. Required Assemblies
5 |
6 | - NLog.dll
7 | - AnyLog.NLog.dll
8 | - LogMaster4Net.NLogAdapter.dll
9 |
10 |
11 |
12 | 2. Server Configuration
13 |
14 |
24 |
25 |
26 | 3. Server Logging Configuration
27 |
28 | \Config\nlog.config: the logging confuguration of the server self;
29 | \Config\nlog.[LogAppName].Config : the logging configuration for your application whose name is [LogAppName]};
30 |
31 | 4. Application Setting
32 |
33 | - Logging Target Configuration
34 |
35 |
40 |
41 |
42 | - Set LogAppName
43 |
44 | LogAppName is defined in the layout attribute of target configuration as the field "appInfo", please replace it to the value you want:
45 |
46 | layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:**appInfo=[LogAppName]**:includeNDC=true:includeNLogData=true}"
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.Base/LocationInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Diagnostics;
2 |
3 | namespace AnyLog
4 | {
5 | ///
6 | /// location info
7 | ///
8 | public class LocationInfo
9 | {
10 | ///
11 | /// Gets or sets the name of the class.
12 | ///
13 | ///
14 | /// The name of the class.
15 | ///
16 | public string ClassName { get; set; }
17 | ///
18 | /// Gets or sets the name of the file.
19 | ///
20 | ///
21 | /// The name of the file.
22 | ///
23 | public string FileName { get; set; }
24 | ///
25 | /// Gets or sets the line number.
26 | ///
27 | ///
28 | /// The line number.
29 | ///
30 | public string LineNumber { get; set; }
31 | ///
32 | /// Gets or sets the name of the method.
33 | ///
34 | ///
35 | /// The name of the method.
36 | ///
37 | public string MethodName { get; set; }
38 | ///
39 | /// Gets or sets the full information.
40 | ///
41 | ///
42 | /// The full information.
43 | ///
44 | public string FullInfo { get; set; }
45 | ///
46 | /// Gets or sets the stack frames.
47 | ///
48 | ///
49 | /// The stack frames.
50 | ///
51 | public StackFrame[] StackFrames { get; set; }
52 | }
53 | }
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.Base/LogMaster4Net.Base.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0.2.0
5 | netstandard1.3
6 | portable
7 | LogMaster4Net.Base
8 | LogMaster4Net.Base
9 | $(PackageTargetFallback);portable-net45+win8
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | $(DefineConstants);DOTNETCORE
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/Test/UnitTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Reflection;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using log4net.Core;
9 | using LogMaster4Net.Base;
10 | using LogMaster4Net.Log4NetAdapter;
11 | using NUnit.Framework;
12 |
13 | namespace Test
14 | {
15 | [TestFixture]
16 | public abstract class UnitTestBase
17 | {
18 | protected abstract ILoggingDeserializer GetLoggingDeserializer();
19 |
20 | protected abstract string GetAssertSubDir();
21 |
22 | [Test]
23 | public void TestDeserializeSingleLog()
24 | {
25 | ILoggingDeserializer deserializer = GetLoggingDeserializer();
26 | var logs = deserializer.Deserialize(File.ReadAllText(Path.Combine("Asserts", GetAssertSubDir(), "SingleLog.xml")));
27 |
28 | Assert.AreEqual(1, logs.Count);
29 |
30 | var log = logs[0];
31 |
32 | Assert.AreEqual("LogMaster", log.LoggerName);
33 | Assert.AreEqual("Hello World", log.Message);
34 | }
35 |
36 | [Test]
37 | public void TestDeserializeExceptionLog()
38 | {
39 | ILoggingDeserializer deserializer = GetLoggingDeserializer();
40 | var logs = deserializer.Deserialize(File.ReadAllText(Path.Combine("Asserts", GetAssertSubDir(), "ExceptionLog.xml")));
41 | Assert.AreEqual(3, logs.Count);
42 | Assert.IsNotNullOrEmpty(logs[0].ExceptionString);
43 | }
44 |
45 | [Test]
46 | public void TestDeserializeMultipleLog()
47 | {
48 | ILoggingDeserializer deserializer = GetLoggingDeserializer();
49 | var logs = deserializer.Deserialize(File.ReadAllText(Path.Combine("Asserts", GetAssertSubDir(), "MultipleLog.xml")));
50 | Assert.AreEqual(2, logs.Count);
51 | Assert.IsNotNullOrEmpty(logs[0].Message);
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Log4NetAdapter/Log4NetLoggingDeserializer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.Specialized;
4 | #if DOTNETCORE
5 | using System.Composition;
6 | #else
7 | using System.ComponentModel.Composition;
8 | #endif
9 | using System.IO;
10 | using System.Linq;
11 | using System.Text;
12 | using System.Xml;
13 | using AnyLog;
14 | using LogMaster4Net.Base;
15 |
16 | namespace LogMaster4Net.Log4NetAdapter
17 | {
18 | [Export(typeof(ILoggingDeserializer))]
19 | [LoggingDeserializerMetadata("log4net")]
20 | public class Log4NetLoggingDeserializer : XmlLoggingDeserializer
21 | {
22 | public Log4NetLoggingDeserializer()
23 | : base(new Dictionary>(StringComparer.OrdinalIgnoreCase)
24 | {
25 | { "logger", (l, r) => l.LoggerName = r.Value },
26 | { "domain", (l, r) => l.Domain = r.Value },
27 | { "username", (l, r) => l.UserName = r.Value },
28 | { "thread", (l, r) => l.ThreadName = r.Value },
29 | { "level", (l, r) => l.Level = r.Value },
30 | { "timestamp", (l, r) => l.TimeStamp = DateTime.Parse(r.Value) },
31 | { "message", (l, r) => l.Message = r.ReadElementContentAsString()} ,
32 | { "properties", ReadProperties },
33 | { "exception", ReadException },
34 | { "locationInfo", XmlElementParser.CreateParser(new Dictionary>(StringComparer.OrdinalIgnoreCase)
35 | {
36 | { "class", (l, r) => l.ClassName = r.Value },
37 | { "method", (l, r) => l.MethodName = r.Value },
38 | { "file", (l, r) => l.FileName = r.Value },
39 | { "line", (l, r) => l.LineNumber = r.Value }
40 | }, (log, location) => log.LocationInfo = location)
41 | }
42 | })
43 | {
44 |
45 | }
46 |
47 | protected override void RegisterXmlNamespaces(XmlNamespaceManager namespaceManager)
48 | {
49 | namespaceManager.AddNamespace("log4net", "urn:log4net");
50 | }
51 |
52 | protected override void Prepare(LoggingData logging)
53 | {
54 | if (logging.Properties != null)
55 | logging.ApplicationName = logging.Properties["LogAppName"];
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/MasterServer/LogMasterServer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel.Composition;
4 | using System.ComponentModel.Composition.Hosting;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading;
8 | using System.Threading.Tasks;
9 | using AnyLog;
10 | using LogMaster4Net.Base;
11 | using SuperSocket.ProtoBase;
12 | using SuperSocket.SocketBase;
13 | using SuperSocket.SocketBase.Config;
14 | using SuperSocket.SocketBase.Protocol;
15 |
16 | namespace LogMaster4Net.MasterServer
17 | {
18 | public class LogMasterServer : AppServer
19 | {
20 | private ILoggingDeserializer m_LoggingDeserializer;
21 |
22 | internal ILoggingDeserializer LoggingDeserializer
23 | {
24 | get { return m_LoggingDeserializer; }
25 | }
26 |
27 | public LogMasterServer()
28 | : base(new DefaultReceiveFilterFactory())
29 | {
30 | this.NewRequestReceived += LogMasterServer_NewRequestReceived;
31 | }
32 |
33 | protected override void RegisterCompositeTarget(IList targets)
34 | {
35 | base.RegisterCompositeTarget(targets);
36 | targets.Add(new LoggingDeserializerCompositeTarget((value) => m_LoggingDeserializer = value));
37 | }
38 |
39 | protected override void OnStarted()
40 | {
41 |
42 | }
43 |
44 | protected override void OnStopped()
45 | {
46 |
47 | }
48 |
49 | void LogMasterServer_NewRequestReceived(LoggingSession session, LoggingPackageInfo requestInfo)
50 | {
51 | var loggings = requestInfo.Data;
52 |
53 | for (var i = 0; i < loggings.Count; i++)
54 | {
55 | var loggingData = loggings[i];
56 |
57 | ILog log;
58 |
59 | if (string.IsNullOrEmpty(loggingData.ApplicationName))
60 | log = LogFactory.GetLog(loggingData.LoggerName);
61 | else
62 | log = LogFactory.GetLog(loggingData.ApplicationName, loggingData.LoggerName);
63 |
64 | if(log == null)
65 | {
66 | Logger.ErrorFormat("Failed to find a logger, LogAppName:[{0}], LoggerName: [{1}].", loggingData.ApplicationName, loggingData.LoggerName);
67 | continue;
68 | }
69 |
70 | log.Log(loggingData);
71 | }
72 | }
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/Base/XmlElementParser.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Xml;
6 | using AnyLog;
7 |
8 | namespace LogMaster4Net.Base
9 | {
10 | public static class XmlElementParser
11 | {
12 | public static Action CreateParser(Dictionary> assigners, Action loggingAction)
13 | where T : class, new()
14 | {
15 | var parser = new XmlElementParser(assigners);
16 | return new Action((logging, reader) => loggingAction(logging, parser.Parse(reader)));
17 | }
18 | }
19 |
20 | public class XmlElementParser
21 | where T : class, new()
22 | {
23 | private Dictionary> m_Assigners;
24 | public XmlElementParser(Dictionary> assigners)
25 | {
26 | m_Assigners = assigners;
27 | }
28 |
29 | public T Parse(XmlReader xmlReader)
30 | {
31 | T entity = new T();
32 |
33 | xmlReader.MoveToContent();
34 |
35 | Action attrAssigner;
36 |
37 | if (xmlReader.MoveToFirstAttribute())
38 | {
39 | if (m_Assigners.TryGetValue(xmlReader.Name, out attrAssigner))
40 | attrAssigner(entity, xmlReader);
41 |
42 | while (xmlReader.MoveToNextAttribute())
43 | {
44 | if (m_Assigners.TryGetValue(xmlReader.Name, out attrAssigner))
45 | attrAssigner(entity, xmlReader);
46 | }
47 | }
48 |
49 | xmlReader.MoveToElement();
50 |
51 | if (xmlReader.IsEmptyElement)
52 | {
53 | xmlReader.Read();
54 | return entity;
55 | }
56 |
57 | if (xmlReader.Read() && xmlReader.NodeType != XmlNodeType.EndElement)
58 | {
59 | while (xmlReader.NodeType != XmlNodeType.EndElement)
60 | {
61 | if (string.IsNullOrEmpty(xmlReader.LocalName))
62 | break;
63 |
64 | if (m_Assigners.TryGetValue(xmlReader.LocalName, out attrAssigner))
65 | attrAssigner(entity, xmlReader);
66 | else
67 | xmlReader.Skip();
68 | }
69 | }
70 |
71 | xmlReader.ReadEndElement();
72 |
73 | return entity;
74 | }
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/NLogAdapter/NLogLoggingDeserializer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.Specialized;
4 | #if DOTNETCORE
5 | using System.Composition;
6 | #else
7 | using System.ComponentModel.Composition;
8 | #endif
9 | using System.Linq;
10 | using System.Text;
11 | using System.Xml;
12 | using AnyLog;
13 | using LogMaster4Net.Base;
14 |
15 | namespace LogMaster4Net.NLogAdapter
16 | {
17 | [Export(typeof(ILoggingDeserializer))]
18 | [LoggingDeserializerMetadata("NLog")]
19 | public class NLogLoggingDeserializer : XmlLoggingDeserializer
20 | {
21 | private static readonly DateTime m_Log4jDateBase = new DateTime(1970, 1, 1);
22 |
23 | public NLogLoggingDeserializer()
24 | : base(new Dictionary>(StringComparer.OrdinalIgnoreCase)
25 | {
26 | { "logger", (l, r) => l.LoggerName = r.Value },
27 | { "domain", (l, r) => l.Domain = r.Value },
28 | { "username", (l, r) => l.UserName = r.Value },
29 | { "thread", (l, r) => l.ThreadName = r.Value },
30 | { "level", (l, r) => l.Level = r.Value },
31 | { "timestamp", (l, r) => l.TimeStamp = m_Log4jDateBase.AddMilliseconds(long.Parse(r.Value)).ToLocalTime() },
32 | { "message", (l, r) => l.Message = r.ReadElementContentAsString() },
33 | { "properties", ReadProperties },
34 | { "throwable", ReadException },
35 | { "locationInfo", XmlElementParser.CreateParser(new Dictionary>(StringComparer.OrdinalIgnoreCase)
36 | {
37 | { "class", (l, r) => l.ClassName = r.Value },
38 | { "method", (l, r) => l.MethodName = r.Value },
39 | { "file", (l, r) => l.FileName = r.Value },
40 | { "line", (l, r) => l.LineNumber = r.Value }
41 | }, (log, location) =>
42 | {
43 | if (log.LocationInfo == null)
44 | log.LocationInfo = location;
45 | })
46 | }
47 | })
48 | {
49 |
50 | }
51 |
52 | protected override void RegisterXmlNamespaces(XmlNamespaceManager namespaceManager)
53 | {
54 | namespaceManager.AddNamespace("log4j", "urn:log4j");
55 | namespaceManager.AddNamespace("nlog", "urn:nlog");
56 | }
57 |
58 | protected override void Prepare(LoggingData logging)
59 | {
60 | if (logging.Properties != null)
61 | logging.ApplicationName = logging.Properties["log4japp"];
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.MasterServer/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Microsoft.Extensions.Logging;
3 | using Microsoft.Extensions.Configuration;
4 | using Microsoft.Extensions.DependencyInjection;
5 | using System.Net.Sockets;
6 | using Microsoft.Extensions.Options;
7 | using System.Net;
8 | using System.Text;
9 | using System.Threading.Tasks;
10 |
11 | namespace LogMaster4Net.MasterServer
12 | {
13 | public class Program
14 | {
15 | private static ILogger _logger;
16 |
17 | public static void Main(string[] args)
18 | {
19 | var config = new ConfigurationBuilder()
20 | .AddJsonFile("app.json", true)
21 | .AddCommandLine(args)
22 | .Build();
23 |
24 | var services = new ServiceCollection();
25 | services.AddOptions().Configure(config);
26 | var serviceProvider = services.BuildServiceProvider();
27 | var serverConfigOptions = serviceProvider.GetService>();
28 |
29 | var serverConfig = serverConfigOptions.Value;
30 |
31 | if (serverConfig == null)
32 | return;
33 |
34 | var factory = new LoggerFactory();
35 | factory.AddConsole();
36 | _logger = factory.CreateLogger("MasterServer");
37 | _logger.LogInformation("Hello World!");
38 |
39 | foreach (var listner in serverConfig.Listners)
40 | {
41 | var ipAddress = IPAddress.Parse(listner.Ip);
42 | var listenerEndPoint = new IPEndPoint(ipAddress, listner.Port);
43 | var socket = new Socket(ipAddress.AddressFamily, SocketType.Dgram, ProtocolType.Udp);
44 | socket.Bind(listenerEndPoint);
45 | socket.Listen(100);
46 |
47 | var sae = new SocketAsyncEventArgs();
48 | var buffer = new byte[1024 * 1024 * 2];
49 | sae.SetBuffer(buffer, 0, buffer.Length);
50 | sae.Completed += OnPackageReceived;
51 | sae.RemoteEndPoint = new IPEndPoint(IPAddress.Any, 0);
52 |
53 | if(!socket.ReceiveFromAsync(sae))
54 | {
55 | OnPackageReceived(socket, sae);
56 | }
57 | }
58 | }
59 |
60 | private static void OnPackageReceived(object sender, SocketAsyncEventArgs e)
61 | {
62 | var socket = sender as Socket;
63 |
64 | var log = Encoding.UTF8.GetString(e.Buffer, 0, e.BytesTransferred);
65 |
66 | Task.Run(() => ProcessLog(log));
67 |
68 | if(!socket.ReceiveFromAsync(e))
69 | {
70 | OnPackageReceived(socket, e);
71 | }
72 | }
73 |
74 | private static void ProcessLog(string remoteLog)
75 | {
76 |
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/LogMaster4Net.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | VisualStudioVersion = 12.0.30723.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LogMaster4Net.MasterServer", "MasterServer\LogMaster4Net.MasterServer.csproj", "{7D4AB859-06FC-44D2-ABFD-AD8EE99C94A6}"
6 | EndProject
7 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LogMaster4Net.Base", "Base\LogMaster4Net.Base.csproj", "{EF0D6FB5-5350-42B6-85C2-49C5194D53E5}"
8 | EndProject
9 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LogMaster4Net.Log4NetAdapter", "Log4NetAdapter\LogMaster4Net.Log4NetAdapter.csproj", "{94EDFB3D-FB54-4025-AD62-8CE9B5341B60}"
10 | EndProject
11 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{CB9DC135-4E2B-414E-8652-C8957A94BE14}"
12 | EndProject
13 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LogMaster4Net.NLogAdapter", "NLogAdapter\LogMaster4Net.NLogAdapter.csproj", "{B8AAF85A-7F5C-4D38-8EE5-8315D12BEBC8}"
14 | EndProject
15 | Global
16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
17 | Debug|Any CPU = Debug|Any CPU
18 | Release|Any CPU = Release|Any CPU
19 | EndGlobalSection
20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
21 | {7D4AB859-06FC-44D2-ABFD-AD8EE99C94A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22 | {7D4AB859-06FC-44D2-ABFD-AD8EE99C94A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
23 | {7D4AB859-06FC-44D2-ABFD-AD8EE99C94A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
24 | {7D4AB859-06FC-44D2-ABFD-AD8EE99C94A6}.Release|Any CPU.Build.0 = Release|Any CPU
25 | {EF0D6FB5-5350-42B6-85C2-49C5194D53E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26 | {EF0D6FB5-5350-42B6-85C2-49C5194D53E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
27 | {EF0D6FB5-5350-42B6-85C2-49C5194D53E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
28 | {EF0D6FB5-5350-42B6-85C2-49C5194D53E5}.Release|Any CPU.Build.0 = Release|Any CPU
29 | {94EDFB3D-FB54-4025-AD62-8CE9B5341B60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30 | {94EDFB3D-FB54-4025-AD62-8CE9B5341B60}.Debug|Any CPU.Build.0 = Debug|Any CPU
31 | {94EDFB3D-FB54-4025-AD62-8CE9B5341B60}.Release|Any CPU.ActiveCfg = Release|Any CPU
32 | {94EDFB3D-FB54-4025-AD62-8CE9B5341B60}.Release|Any CPU.Build.0 = Release|Any CPU
33 | {CB9DC135-4E2B-414E-8652-C8957A94BE14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34 | {CB9DC135-4E2B-414E-8652-C8957A94BE14}.Debug|Any CPU.Build.0 = Debug|Any CPU
35 | {CB9DC135-4E2B-414E-8652-C8957A94BE14}.Release|Any CPU.ActiveCfg = Release|Any CPU
36 | {CB9DC135-4E2B-414E-8652-C8957A94BE14}.Release|Any CPU.Build.0 = Release|Any CPU
37 | {B8AAF85A-7F5C-4D38-8EE5-8315D12BEBC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38 | {B8AAF85A-7F5C-4D38-8EE5-8315D12BEBC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
39 | {B8AAF85A-7F5C-4D38-8EE5-8315D12BEBC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
40 | {B8AAF85A-7F5C-4D38-8EE5-8315D12BEBC8}.Release|Any CPU.Build.0 = Release|Any CPU
41 | EndGlobalSection
42 | GlobalSection(SolutionProperties) = preSolution
43 | HideSolutionNode = FALSE
44 | EndGlobalSection
45 | EndGlobal
--------------------------------------------------------------------------------
/Base/LogMaster4Net.Base.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {EF0D6FB5-5350-42B6-85C2-49C5194D53E5}
8 | Library
9 | Properties
10 | LogMaster4Net.Base
11 | LogMaster4Net.Base
12 | v4.0
13 | 512
14 |
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | False
36 | ..\packages\AnyLog.0.1.5.0\lib\net40\AnyLog.dll
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | GlobalAssemblyInfo.cs
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
67 |
--------------------------------------------------------------------------------
/dotnet/LogMaster4Net.Base/LoggingData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.Specialized;
4 | using System.Text;
5 |
6 | namespace AnyLog
7 | {
8 | ///
9 | /// logging data
10 | ///
11 | public class LoggingData
12 | {
13 | ///
14 | /// Gets or sets the name of the application.
15 | ///
16 | ///
17 | /// The name of the application.
18 | ///
19 | public string ApplicationName { get; set; }
20 |
21 | ///
22 | /// Gets or sets the name of the logger.
23 | ///
24 | ///
25 | /// The name of the logger.
26 | ///
27 | public string LoggerName { get; set; }
28 |
29 | ///
30 | /// Gets or sets the level.
31 | ///
32 | ///
33 | /// The level.
34 | ///
35 | public string Level { get; set; }
36 |
37 | ///
38 | /// Gets or sets the message.
39 | ///
40 | ///
41 | /// The message.
42 | ///
43 | public string Message { get; set; }
44 |
45 | ///
46 | /// Gets or sets the name of the thread.
47 | ///
48 | ///
49 | /// The name of the thread.
50 | ///
51 | public string ThreadName { get; set; }
52 |
53 | ///
54 | /// Gets or sets the time stamp.
55 | ///
56 | ///
57 | /// The time stamp.
58 | ///
59 | public DateTime TimeStamp { get; set; }
60 |
61 | ///
62 | /// Gets or sets the location information.
63 | ///
64 | ///
65 | /// The location information.
66 | ///
67 | public LocationInfo LocationInfo { get; set; }
68 |
69 | ///
70 | /// Gets or sets the name of the user.
71 | ///
72 | ///
73 | /// The name of the user.
74 | ///
75 | public string UserName { get; set; }
76 |
77 | ///
78 | /// Gets or sets the identity.
79 | ///
80 | ///
81 | /// The identity.
82 | ///
83 | public string Identity { get; set; }
84 |
85 | ///
86 | /// Gets or sets the exception string.
87 | ///
88 | ///
89 | /// The exception string.
90 | ///
91 | public string ExceptionString { get; set; }
92 |
93 | ///
94 | /// Gets or sets the domain.
95 | ///
96 | ///
97 | /// The domain.
98 | ///
99 | public string Domain { get; set; }
100 |
101 | ///
102 | /// Gets or sets the properties.
103 | ///
104 | ///
105 | /// The properties.
106 | ///
107 | public StringDictionary Properties { get; set; }
108 | }
109 | }
--------------------------------------------------------------------------------
/MasterServer/Config/log4net.unix.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/Config/log4net.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/Config/log4net.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/Config/log4net.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/Config/log4net.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/Config/log4net.unix.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/Config/log4net.unix.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/Config/log4net.unix.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/Config/log4net.unix.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/NLogAdapter/LogMaster4Net.NLogAdapter.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {B8AAF85A-7F5C-4D38-8EE5-8315D12BEBC8}
8 | Library
9 | Properties
10 | LogMaster4Net.NLogAdapter
11 | LogMaster4Net.NLogAdapter
12 | v4.0
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | False
35 | ..\packages\AnyLog.0.1.5.0\lib\net40\AnyLog.dll
36 |
37 |
38 | ..\packages\NLog.3.2.0.0\lib\net40\NLog.dll
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | GlobalAssemblyInfo.cs
50 |
51 |
52 |
53 |
54 |
55 |
56 | {ef0d6fb5-5350-42b6-85c2-49c5194d53e5}
57 | LogMaster4Net.Base
58 |
59 |
60 |
61 |
62 |
63 |
64 |
71 |
--------------------------------------------------------------------------------
/Base/XmlLoggingDeserializer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.Specialized;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Xml;
7 | using AnyLog;
8 |
9 | namespace LogMaster4Net.Base
10 | {
11 | public abstract class XmlLoggingDeserializer : XmlElementParser, ILoggingDeserializer
12 | {
13 | private readonly XmlNamespaceManager m_XmlNamespaceManager;
14 |
15 | protected XmlLoggingDeserializer(Dictionary> assigners)
16 | : base(assigners)
17 | {
18 | m_XmlNamespaceManager = new XmlNamespaceManager(new NameTable());
19 | RegisterXmlNamespaces(m_XmlNamespaceManager);
20 | }
21 |
22 | protected abstract void RegisterXmlNamespaces(XmlNamespaceManager namespaceManager);
23 |
24 | protected static void ReadException(LoggingData logging, XmlReader reader)
25 | {
26 | reader.Read();
27 | logging.ExceptionString = reader.Value;
28 | reader.Read();
29 | reader.ReadEndElement();
30 | }
31 |
32 | protected static void ReadProperties(LoggingData logging, XmlReader reader)
33 | {
34 | reader.MoveToContent();
35 |
36 | var properties = logging.Properties;
37 |
38 | if(properties == null)
39 | {
40 | properties = new StringDictionary();
41 | logging.Properties = properties;
42 | }
43 |
44 | while (reader.Read() && reader.NodeType != XmlNodeType.EndElement)
45 | {
46 | if (!reader.MoveToFirstAttribute())
47 | {
48 | reader.MoveToElement();
49 | continue;
50 | }
51 |
52 | var key = reader.Value;
53 |
54 | if (!reader.MoveToNextAttribute())
55 | {
56 | reader.MoveToElement();
57 | continue;
58 | }
59 |
60 | var value = reader.Value;
61 |
62 | properties.Add(key, value);
63 | reader.MoveToElement();
64 | }
65 |
66 | reader.ReadEndElement();
67 | }
68 |
69 | public IList Deserialize(string log)
70 | {
71 | var logs = new List();
72 |
73 | var context = new XmlParserContext(null, m_XmlNamespaceManager, null, XmlSpace.None);
74 |
75 | #if !DOTNETCORE
76 | var xmlReader = new XmlTextReader(log, XmlNodeType.Element, context);
77 | xmlReader.WhitespaceHandling = WhitespaceHandling.None;
78 | #else
79 | var xmlReaderSettings = new XmlReaderSettings
80 | {
81 | IgnoreWhitespace = true
82 | };
83 |
84 | var xmlReader = XmlReader.Create(new System.IO.StringReader(log), xmlReaderSettings, context);
85 | #endif
86 | xmlReader.Read();
87 |
88 | while (xmlReader.NodeType != XmlNodeType.None)
89 | {
90 | var logging = Parse(xmlReader);
91 | Prepare(logging);
92 | logs.Add(logging);
93 | }
94 |
95 | return logs;
96 | }
97 |
98 | protected abstract void Prepare(LoggingData logging);
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/Log4NetAdapter/LogMaster4Net.Log4NetAdapter.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {94EDFB3D-FB54-4025-AD62-8CE9B5341B60}
8 | Library
9 | Properties
10 | LogMaster4Net.Log4NetAdapter
11 | LogMaster4Net.Log4NetAdapter
12 | v4.0
13 | 512
14 |
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | False
36 | ..\packages\AnyLog.0.1.5.0\lib\net40\AnyLog.dll
37 |
38 |
39 | ..\packages\log4net.2.0.3\lib\net40-full\log4net.dll
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | GlobalAssemblyInfo.cs
52 |
53 |
54 |
55 |
56 |
57 |
58 | {ef0d6fb5-5350-42b6-85c2-49c5194d53e5}
59 | LogMaster4Net.Base
60 |
61 |
62 |
63 |
64 |
65 |
66 |
73 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.sln.docstates
8 |
9 | # Build results
10 | [Dd]ebug/
11 | [Dd]ebugPublic/
12 | [Rr]elease/
13 | [Rr]eleases/
14 | x64/
15 | x86/
16 | build/
17 | bld/
18 | [Bb]in/
19 | [Oo]bj/
20 |
21 | # Roslyn cache directories
22 | *.ide/
23 |
24 | # MSTest test Results
25 | [Tt]est[Rr]esult*/
26 | [Bb]uild[Ll]og.*
27 |
28 | #NUNIT
29 | *.VisualState.xml
30 | TestResult.xml
31 |
32 | # Build Results of an ATL Project
33 | [Dd]ebugPS/
34 | [Rr]eleasePS/
35 | dlldata.c
36 |
37 | *_i.c
38 | *_p.c
39 | *_i.h
40 | *.ilk
41 | *.meta
42 | *.obj
43 | *.pch
44 | *.pdb
45 | *.pgc
46 | *.pgd
47 | *.rsp
48 | *.sbr
49 | *.tlb
50 | *.tli
51 | *.tlh
52 | *.tmp
53 | *.tmp_proj
54 | *.log
55 | *.vspscc
56 | *.vssscc
57 | .builds
58 | *.pidb
59 | *.svclog
60 | *.scc
61 |
62 | # Chutzpah Test files
63 | _Chutzpah*
64 |
65 | # Visual C++ cache files
66 | ipch/
67 | *.aps
68 | *.ncb
69 | *.opensdf
70 | *.sdf
71 | *.cachefile
72 |
73 | # Visual Studio profiler
74 | *.psess
75 | *.vsp
76 | *.vspx
77 |
78 | # TFS 2012 Local Workspace
79 | $tf/
80 |
81 | # Guidance Automation Toolkit
82 | *.gpState
83 |
84 | # ReSharper is a .NET coding add-in
85 | _ReSharper*/
86 | *.[Rr]e[Ss]harper
87 | *.DotSettings.user
88 |
89 | # JustCode is a .NET coding addin-in
90 | .JustCode
91 |
92 | # TeamCity is a build add-in
93 | _TeamCity*
94 |
95 | # DotCover is a Code Coverage Tool
96 | *.dotCover
97 |
98 | # NCrunch
99 | _NCrunch_*
100 | .*crunch*.local.xml
101 |
102 | # MightyMoose
103 | *.mm.*
104 | AutoTest.Net/
105 |
106 | # Web workbench (sass)
107 | .sass-cache/
108 |
109 | # Installshield output folder
110 | [Ee]xpress/
111 |
112 | # DocProject is a documentation generator add-in
113 | DocProject/buildhelp/
114 | DocProject/Help/*.HxT
115 | DocProject/Help/*.HxC
116 | DocProject/Help/*.hhc
117 | DocProject/Help/*.hhk
118 | DocProject/Help/*.hhp
119 | DocProject/Help/Html2
120 | DocProject/Help/html
121 |
122 | # Click-Once directory
123 | publish/
124 |
125 | # Publish Web Output
126 | *.[Pp]ublish.xml
127 | *.azurePubxml
128 | # TODO: Comment the next line if you want to checkin your web deploy settings
129 | # but database connection strings (with potential passwords) will be unencrypted
130 | *.pubxml
131 | *.publishproj
132 |
133 | # NuGet Packages
134 | *.nupkg
135 | # The packages folder can be ignored because of Package Restore
136 | **/packages/*
137 | # except build/, which is used as an MSBuild target.
138 | !**/packages/build/
139 | # If using the old MSBuild-Integrated Package Restore, uncomment this:
140 | #!**/packages/repositories.config
141 |
142 | # Windows Azure Build Output
143 | csx/
144 | *.build.csdef
145 |
146 | # Windows Store app package directory
147 | AppPackages/
148 |
149 | # Others
150 | sql/
151 | *.Cache
152 | ClientBin/
153 | [Ss]tyle[Cc]op.*
154 | ~$*
155 | *~
156 | *.dbmdl
157 | *.dbproj.schemaview
158 | *.pfx
159 | *.publishsettings
160 | node_modules/
161 |
162 | # RIA/Silverlight projects
163 | Generated_Code/
164 |
165 | # Backup & report files from converting an old project file
166 | # to a newer Visual Studio version. Backup files are not needed,
167 | # because we have git ;-)
168 | _UpgradeReport_Files/
169 | Backup*/
170 | UpgradeLog*.XML
171 | UpgradeLog*.htm
172 |
173 | # SQL Server files
174 | *.mdf
175 | *.ldf
176 |
177 | # Business Intelligence projects
178 | *.rdl.data
179 | *.bim.layout
180 | *.bim_*.settings
181 |
182 | # Microsoft Fakes
183 | FakesAssemblies/
184 |
185 |
186 | # .dotnet core runtime generated files
187 | *.lock.json
188 |
--------------------------------------------------------------------------------
/MasterServer/Config/log4net.config:
--------------------------------------------------------------------------------
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 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/Test/Test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {CB9DC135-4E2B-414E-8652-C8957A94BE14}
8 | Library
9 | Properties
10 | Test
11 | Test
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | False
35 | ..\packages\AnyLog.0.1.5.0\lib\net40\AnyLog.dll
36 |
37 |
38 | False
39 | ..\packages\log4net.2.0.3\lib\net40-full\log4net.dll
40 |
41 |
42 | ..\packages\NLog.3.2.0.0\lib\net45\NLog.dll
43 |
44 |
45 | ..\Reference\nunit.framework.dll
46 |
47 |
48 | ..\Reference\SuperSocket\Net40\Debug\SuperSocket.SocketBase.dll
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | {ef0d6fb5-5350-42b6-85c2-49c5194d53e5}
65 | LogMaster4Net.Base
66 |
67 |
68 | {94edfb3d-fb54-4025-ad62-8ce9b5341b60}
69 | LogMaster4Net.Log4NetAdapter
70 |
71 |
72 | {b8aaf85a-7f5c-4d38-8ee5-8315d12bebc8}
73 | LogMaster4Net.NLogAdapter
74 |
75 |
76 |
77 |
78 | PreserveNewest
79 |
80 |
81 | Designer
82 | PreserveNewest
83 |
84 |
85 | PreserveNewest
86 | Designer
87 |
88 |
89 | Designer
90 | PreserveNewest
91 |
92 |
93 |
94 |
95 |
96 |
97 |
104 |
--------------------------------------------------------------------------------
/Test/Asserts/log4net/ExceptionLog.xml:
--------------------------------------------------------------------------------
1 |
2 | Update/delete post failed. PostID: 4642658216, AgentIP: 64.79.160.42, Account: tolfpxcgc@pulaslindustriesian.com.
3 |
4 |
5 |
6 |
7 |
8 | System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.209.134.7:80
9 | at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
10 | at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
11 | --- End of inner exception stack trace ---
12 | at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
13 | at System.Net.HttpWebRequest.GetRequestStream()
14 | at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
15 | at RainCoder.EA.Common.Web.ASMXClient.Intercept(IInvocation invocation)
16 | at RainCoder.EA.Proxy.InvocationImpl.Invoke(Object newTarget)
17 | at __wrapper_29.GetPageHtml_@!(HttpClient , String )
18 | at RainCoder.EA.Common.Web.RemoteHttpClient.RainCoder.EA.Common.Web.IHttpClient.GetPageHtml(String url)
19 | at (Object , Object[] )
20 | at RainCoder.EA.Proxy.InvocationImpl.Invoke(Object newTarget)
21 | at RainCoder.AutoCRM.Service.ServiceImpl.AutoCRM.PostServiceImpl.LogForHttpClient(IInvocation invocation, Int32 postLogID, String successStatus) in c:\Cargigi\Projects\AutoCRM\RainCoder.AutoCRM.Service\ServiceImpl\Post\PostServiceImpl.cs:line 1759
22 | at (Object , Object[] )
23 | at RainCoder.EA.Proxy.InvocationImpl.Invoke(Object newTarget)
24 | at RainCoder.EA.DataAccess.TransactionInterceptor.RainCoder.EA.Proxy.IInterceptor.Intercept(IInvocation invocation)
25 | at RainCoder.EA.Proxy.InvocationImpl.Invoke(Object newTarget)
26 | at __wrapper_24.LogForHttpClient_@!(IInvocation , Int32 , String )
27 | at RainCoder.AutoCRM.Service.ServiceImpl.AutoCRM.PosterService.__Intercept(IInvocation invocation, String status) in c:\Cargigi\Projects\AutoCRM\RainCoder.AutoCRM.Service\ServiceImpl\Post\PosterService.cs:line 397
28 | at RainCoder.AutoCRM.Service.ServiceImpl.AutoCRM.PosterService.Intercept(IInvocation invocation) in c:\Cargigi\Projects\AutoCRM\RainCoder.AutoCRM.Service\ServiceImpl\Post\PosterService.cs:line 334
29 | at RainCoder.EA.Proxy.InvocationImpl.Invoke(Object newTarget)
30 | at __wrapper_30.GetPageHtml_@!(String )
31 | at RainCoder.AutoCRM.PostEngine.HttpPostEngine.GetPageHtml(String url) in c:\Cargigi\Projects\AutoCRM\AutoCRMPost\PostEngine\Poster.cs:line 215
32 | at RainCoder.AutoCRM.PostEngine.Craigslist.SignIn(String userEmail, String password, String cookie, String& strHtml) in c:\Cargigi\Projects\AutoCRM\AutoCRMPost\PostEngine\Craigslist.cs:line 78
33 | at RainCoder.AutoCRM.PostEngine.Craigslist.LoginToCraigslist(CraigslistItem post, String& html, PostResult result) in c:\Cargigi\Projects\AutoCRM\AutoCRMPost\PostEngine\Craigslist.cs:line 2386
34 | at RainCoder.AutoCRM.PostEngine.Craigslist.UpdatePost(List`1 posts) in c:\Cargigi\Projects\AutoCRM\AutoCRMPost\PostEngine\Craigslist.cs:line 1808]]>
35 |
36 |
37 |
38 |
39 | Current Time: 09/19/2014 20:52:40
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | Current Time: 09/19/2014 20:52:42
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/MasterServer/LogMaster4Net.MasterServer.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {7D4AB859-06FC-44D2-ABFD-AD8EE99C94A6}
8 | Library
9 | Properties
10 | LogMaster4Net.MasterServer
11 | LogMaster4Net.MasterServer
12 | v4.0
13 | 512
14 |
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | False
36 | ..\packages\AnyLog.0.1.5.0\lib\net40\AnyLog.dll
37 |
38 |
39 | ..\Reference\SuperSocket\Net40\$(Configuration)\SuperSocket.Common.dll
40 |
41 |
42 | False
43 | ..\Reference\SuperSocket\Net40\$(Configuration)\SuperSocket.ProtoBase.dll
44 |
45 |
46 | ..\Reference\SuperSocket\Net40\$(Configuration)\SuperSocket.SocketBase.dll
47 |
48 |
49 | ..\Reference\SuperSocket\Net40\$(Configuration)\SuperSocket.SocketEngine.dll
50 |
51 |
52 | ..\Reference\SuperSocket\Net40\$(Configuration)\SuperSocket.SocketService.exe
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | GlobalAssemblyInfo.cs
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | PreserveNewest
75 |
76 |
77 | PreserveNewest
78 |
79 |
80 | PreserveNewest
81 |
82 |
83 | PreserveNewest
84 |
85 |
86 |
87 | PreserveNewest
88 |
89 |
90 |
91 |
92 | {ef0d6fb5-5350-42b6-85c2-49c5194d53e5}
93 | LogMaster4Net.Base
94 |
95 |
96 |
97 |
104 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Facility.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Facility
5 |
6 |
7 |
8 |
9 | Flash policy AppServer
10 |
11 |
12 |
13 |
14 | PolicyServer base class
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Setups the specified root config.
25 |
26 | The root config.
27 | The config.
28 |
29 |
30 |
31 |
32 | Setups the policy response.
33 |
34 | The policy file data.
35 |
36 |
37 |
38 |
39 | Gets the policy file response.
40 |
41 | The client end point.
42 |
43 |
44 |
45 |
46 | Processes the request.
47 |
48 | The session.
49 | The request.
50 |
51 |
52 |
53 | Gets the policy response.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Setups the policy response.
64 |
65 | The policy file data.
66 |
67 |
68 |
69 |
70 | PolicyReceiveFilter
71 |
72 |
73 |
74 |
75 | Initializes a new instance of the class.
76 |
77 | The size.
78 |
79 |
80 |
81 | Initializes a new instance of the class.
82 |
83 | Size of the fix request.
84 |
85 |
86 |
87 | Creates the filter.
88 |
89 | The app server.
90 | The app session.
91 | The remote end point.
92 |
93 |
94 |
95 |
96 | Gets the size of the fix request.
97 |
98 |
99 | The size of the fix request.
100 |
101 |
102 |
103 |
104 | PolicySession
105 |
106 |
107 |
108 |
109 | Silverlight policy AppServer
110 |
111 |
112 |
113 |
114 | Initializes a new instance of the class.
115 |
116 |
117 |
118 |
119 | Processes the request.
120 |
121 | The session.
122 | The request.
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Facility.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Facility
5 |
6 |
7 |
8 |
9 | Flash policy AppServer
10 |
11 |
12 |
13 |
14 | PolicyServer base class
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Setups the specified root config.
25 |
26 | The root config.
27 | The config.
28 |
29 |
30 |
31 |
32 | Setups the policy response.
33 |
34 | The policy file data.
35 |
36 |
37 |
38 |
39 | Gets the policy file response.
40 |
41 | The client end point.
42 |
43 |
44 |
45 |
46 | Processes the request.
47 |
48 | The session.
49 | The request.
50 |
51 |
52 |
53 | Gets the policy response.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Setups the policy response.
64 |
65 | The policy file data.
66 |
67 |
68 |
69 |
70 | PolicyReceiveFilter
71 |
72 |
73 |
74 |
75 | Initializes a new instance of the class.
76 |
77 | The size.
78 |
79 |
80 |
81 | Initializes a new instance of the class.
82 |
83 | Size of the fix request.
84 |
85 |
86 |
87 | Creates the filter.
88 |
89 | The app server.
90 | The app session.
91 | The remote end point.
92 |
93 |
94 |
95 |
96 | Gets the size of the fix request.
97 |
98 |
99 | The size of the fix request.
100 |
101 |
102 |
103 |
104 | PolicySession
105 |
106 |
107 |
108 |
109 | Silverlight policy AppServer
110 |
111 |
112 |
113 |
114 | Initializes a new instance of the class.
115 |
116 |
117 |
118 |
119 | Processes the request.
120 |
121 | The session.
122 | The request.
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Facility.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Facility
5 |
6 |
7 |
8 |
9 | Flash policy AppServer
10 |
11 |
12 |
13 |
14 | PolicyServer base class
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Setups the specified root config.
25 |
26 | The root config.
27 | The config.
28 |
29 |
30 |
31 |
32 | Setups the policy response.
33 |
34 | The policy file data.
35 |
36 |
37 |
38 |
39 | Gets the policy file response.
40 |
41 | The client end point.
42 |
43 |
44 |
45 |
46 | Processes the request.
47 |
48 | The session.
49 | The request.
50 |
51 |
52 |
53 | Gets the policy response.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Setups the policy response.
64 |
65 | The policy file data.
66 |
67 |
68 |
69 |
70 | PolicyReceiveFilter
71 |
72 |
73 |
74 |
75 | Initializes a new instance of the class.
76 |
77 | The size.
78 |
79 |
80 |
81 | Initializes a new instance of the class.
82 |
83 | Size of the fix request.
84 |
85 |
86 |
87 | Creates the filter.
88 |
89 | The app server.
90 | The app session.
91 | The remote end point.
92 |
93 |
94 |
95 |
96 | Gets the size of the fix request.
97 |
98 |
99 | The size of the fix request.
100 |
101 |
102 |
103 |
104 | PolicySession
105 |
106 |
107 |
108 |
109 | Silverlight policy AppServer
110 |
111 |
112 |
113 |
114 | Initializes a new instance of the class.
115 |
116 |
117 |
118 |
119 | Processes the request.
120 |
121 | The session.
122 | The request.
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Facility.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Facility
5 |
6 |
7 |
8 |
9 | Flash policy AppServer
10 |
11 |
12 |
13 |
14 | PolicyServer base class
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Setups the specified root config.
25 |
26 | The root config.
27 | The config.
28 |
29 |
30 |
31 |
32 | Setups the policy response.
33 |
34 | The policy file data.
35 |
36 |
37 |
38 |
39 | Gets the policy file response.
40 |
41 | The client end point.
42 |
43 |
44 |
45 |
46 | Processes the request.
47 |
48 | The session.
49 | The request.
50 |
51 |
52 |
53 | Gets the policy response.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Setups the policy response.
64 |
65 | The policy file data.
66 |
67 |
68 |
69 |
70 | PolicyReceiveFilter
71 |
72 |
73 |
74 |
75 | Initializes a new instance of the class.
76 |
77 | The size.
78 |
79 |
80 |
81 | Initializes a new instance of the class.
82 |
83 | Size of the fix request.
84 |
85 |
86 |
87 | Creates the filter.
88 |
89 | The app server.
90 | The app session.
91 | The remote end point.
92 |
93 |
94 |
95 |
96 | Gets the size of the fix request.
97 |
98 |
99 | The size of the fix request.
100 |
101 |
102 |
103 |
104 | PolicySession
105 |
106 |
107 |
108 |
109 | Silverlight policy AppServer
110 |
111 |
112 |
113 |
114 | Initializes a new instance of the class.
115 |
116 |
117 |
118 |
119 | Processes the request.
120 |
121 | The session.
122 | The request.
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Debug/SuperSocket.Dlr.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Dlr
5 |
6 |
7 |
8 |
9 | DynamicCommandLoader
10 |
11 |
12 |
13 |
14 | Which is used for loading dynamic script file
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Initializes a new instance of the class.
25 |
26 | The script runtime.
27 |
28 |
29 |
30 | Gets the script sources.
31 |
32 | The root config.
33 | The app server.
34 |
35 |
36 |
37 |
38 | Initializes the command loader by the root config and the appserver instance.
39 |
40 | The root config.
41 | The app server.
42 |
43 |
44 |
45 |
46 | Tries to load commands.
47 |
48 | The commands.
49 |
50 |
51 |
52 |
53 | Gets the script runtime.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Initializes a new instance of the class.
64 |
65 | The script runtime.
66 |
67 |
68 |
69 | Gets the script sources.
70 |
71 | The root config.
72 | The app server.
73 |
74 |
75 |
76 |
77 | ScriptSourceBase
78 |
79 |
80 |
81 |
82 | DynamicCommandSource interface
83 |
84 |
85 |
86 |
87 | Gets the script code.
88 |
89 |
90 |
91 |
92 |
93 | Gets the name matches with the command anme.
94 |
95 |
96 |
97 |
98 | Gets the language extension.
99 |
100 |
101 |
102 |
103 | Gets the tag, a string can identify the script source.
104 |
105 |
106 |
107 |
108 | Gets the last updated time.
109 |
110 |
111 |
112 |
113 | Gets the script code.
114 |
115 |
116 |
117 |
118 |
119 | Gets the name matches with the command anme.
120 |
121 |
122 |
123 |
124 | Gets the language extension.
125 |
126 |
127 |
128 |
129 | Gets the tag.
130 |
131 |
132 |
133 |
134 | Gets the last updated time.
135 |
136 |
137 |
138 |
139 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net40/Release/SuperSocket.Dlr.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Dlr
5 |
6 |
7 |
8 |
9 | DynamicCommandLoader
10 |
11 |
12 |
13 |
14 | Which is used for loading dynamic script file
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Initializes a new instance of the class.
25 |
26 | The script runtime.
27 |
28 |
29 |
30 | Gets the script sources.
31 |
32 | The root config.
33 | The app server.
34 |
35 |
36 |
37 |
38 | Initializes the command loader by the root config and the appserver instance.
39 |
40 | The root config.
41 | The app server.
42 |
43 |
44 |
45 |
46 | Tries to load commands.
47 |
48 | The commands.
49 |
50 |
51 |
52 |
53 | Gets the script runtime.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Initializes a new instance of the class.
64 |
65 | The script runtime.
66 |
67 |
68 |
69 | Gets the script sources.
70 |
71 | The root config.
72 | The app server.
73 |
74 |
75 |
76 |
77 | ScriptSourceBase
78 |
79 |
80 |
81 |
82 | DynamicCommandSource interface
83 |
84 |
85 |
86 |
87 | Gets the script code.
88 |
89 |
90 |
91 |
92 |
93 | Gets the name matches with the command anme.
94 |
95 |
96 |
97 |
98 | Gets the language extension.
99 |
100 |
101 |
102 |
103 | Gets the tag, a string can identify the script source.
104 |
105 |
106 |
107 |
108 | Gets the last updated time.
109 |
110 |
111 |
112 |
113 | Gets the script code.
114 |
115 |
116 |
117 |
118 |
119 | Gets the name matches with the command anme.
120 |
121 |
122 |
123 |
124 | Gets the language extension.
125 |
126 |
127 |
128 |
129 | Gets the tag.
130 |
131 |
132 |
133 |
134 | Gets the last updated time.
135 |
136 |
137 |
138 |
139 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Debug/SuperSocket.Dlr.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Dlr
5 |
6 |
7 |
8 |
9 | DynamicCommandLoader
10 |
11 |
12 |
13 |
14 | Which is used for loading dynamic script file
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Initializes a new instance of the class.
25 |
26 | The script runtime.
27 |
28 |
29 |
30 | Gets the script sources.
31 |
32 | The root config.
33 | The app server.
34 |
35 |
36 |
37 |
38 | Initializes the command loader by the root config and the appserver instance.
39 |
40 | The root config.
41 | The app server.
42 |
43 |
44 |
45 |
46 | Tries to load commands.
47 |
48 | The commands.
49 |
50 |
51 |
52 |
53 | Gets the script runtime.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Initializes a new instance of the class.
64 |
65 | The script runtime.
66 |
67 |
68 |
69 | Gets the script sources.
70 |
71 | The root config.
72 | The app server.
73 |
74 |
75 |
76 |
77 | ScriptSourceBase
78 |
79 |
80 |
81 |
82 | DynamicCommandSource interface
83 |
84 |
85 |
86 |
87 | Gets the script code.
88 |
89 |
90 |
91 |
92 |
93 | Gets the name matches with the command anme.
94 |
95 |
96 |
97 |
98 | Gets the language extension.
99 |
100 |
101 |
102 |
103 | Gets the tag, a string can identify the script source.
104 |
105 |
106 |
107 |
108 | Gets the last updated time.
109 |
110 |
111 |
112 |
113 | Gets the script code.
114 |
115 |
116 |
117 |
118 |
119 | Gets the name matches with the command anme.
120 |
121 |
122 |
123 |
124 | Gets the language extension.
125 |
126 |
127 |
128 |
129 | Gets the tag.
130 |
131 |
132 |
133 |
134 | Gets the last updated time.
135 |
136 |
137 |
138 |
139 |
--------------------------------------------------------------------------------
/Reference/SuperSocket/Net45/Release/SuperSocket.Dlr.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SuperSocket.Dlr
5 |
6 |
7 |
8 |
9 | DynamicCommandLoader
10 |
11 |
12 |
13 |
14 | Which is used for loading dynamic script file
15 |
16 |
17 |
18 |
19 | Initializes a new instance of the class.
20 |
21 |
22 |
23 |
24 | Initializes a new instance of the class.
25 |
26 | The script runtime.
27 |
28 |
29 |
30 | Gets the script sources.
31 |
32 | The root config.
33 | The app server.
34 |
35 |
36 |
37 |
38 | Initializes the command loader by the root config and the appserver instance.
39 |
40 | The root config.
41 | The app server.
42 |
43 |
44 |
45 |
46 | Tries to load commands.
47 |
48 | The commands.
49 |
50 |
51 |
52 |
53 | Gets the script runtime.
54 |
55 |
56 |
57 |
58 | Initializes a new instance of the class.
59 |
60 |
61 |
62 |
63 | Initializes a new instance of the class.
64 |
65 | The script runtime.
66 |
67 |
68 |
69 | Gets the script sources.
70 |
71 | The root config.
72 | The app server.
73 |
74 |
75 |
76 |
77 | ScriptSourceBase
78 |
79 |
80 |
81 |
82 | DynamicCommandSource interface
83 |
84 |
85 |
86 |
87 | Gets the script code.
88 |
89 |
90 |
91 |
92 |
93 | Gets the name matches with the command anme.
94 |
95 |
96 |
97 |
98 | Gets the language extension.
99 |
100 |
101 |
102 |
103 | Gets the tag, a string can identify the script source.
104 |
105 |
106 |
107 |
108 | Gets the last updated time.
109 |
110 |
111 |
112 |
113 | Gets the script code.
114 |
115 |
116 |
117 |
118 |
119 | Gets the name matches with the command anme.
120 |
121 |
122 |
123 |
124 | Gets the language extension.
125 |
126 |
127 |
128 |
129 | Gets the tag.
130 |
131 |
132 |
133 |
134 | Gets the last updated time.
135 |
136 |
137 |
138 |
139 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------