- Add color background for message details
Fix:
- Fix missing '\'and '{' and '}' in the message details
For me it also works fine with the following target:
```
<target name="udp" xsi:type="Network" address="udp4://127.0.0.1:7071"
layout="${log4jxmlevent}" />
```
What does not work for log2console 1.6 and higher is the exceptions. They won't log into the Exceptions tab.
public string GetMessageDetails()
{
var sb = new StringBuilder();
sb.Append(@"{\rtf1\ansi ");
To: public string GetMessageDetails()
{
var sb = new StringBuilder();
sb.Append(@"{\rtf1\ansi\ansicpg1251");
The install of application Log2Console from policy QDevApps failed. The error was : %%1603Has anyone had success doing this?
collapse_all.png
pin.png
unselect.png
I have the same problem with 1.6.0.2
I tested it with some fake server and application sends some text stream. But log2console does not show and message.
AssemblyInfo.cs
```
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
```
App.config
```
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="RemotingAppender" type="log4net.Appender.RemotingAppender" >
<sink value="tcp://localhost:7070/LoggingSink" />
<lossy value="false" />
<bufferSize value="1" />
</appender>
<root>
<level value="ALL" />
<appender-ref ref="RemotingAppender" />
</root>
</log4net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
```
Program.cs
```
static readonly ILog log;
static Program()
{
log = LogManager.GetLogger("Main");
}
static void Main(string[] args)
{
log.Info("Test");
log.Debug("Test");
```
.NET Remoting in `Log2Console` is set.
Any suggestion?
2nd patch file
Updated tcpreceiver patch.
I am not sure if I am/was missing something in the Start method. The while loop was running as long as the receiver was listening. Which was causing high cpu usage.
Seems to be working much better now.