Quantcast
Channel: Log2Console - A Generic Log Viewer (for Log4Net, NLog...)

Released: Log2Console v1.6.0.2 (Sep 15, 2015)

$
0
0
New Feature:
- Add color background for message details

Fix:
- Fix missing '\'and '{' and '}' in the message details

Created Release: Log2Console v1.6.0.2 (sept. 15, 2015)

$
0
0
New Feature:
- Add color background for message details

Fix:
- Fix missing '\'and '{' and '}' in the message details

New Post: Log2Console development

$
0
0
Awesome, just updated to latest. I don't see the "Keep selected" and "Deactivated" buttons though. I'm on 1.6.0.2.

Some feature suggestions:
  • Ability to disable background storage of unselected loggers. Sometimes I leave it open and it's sucking memory but I only have one logger enabled.
  • Search on "enter" or add a "go" button. Searching on every keystroke can cause it to go really slow or freeze.

Created Unassigned: Memory Consumption [17565]

$
0
0
Hi, i work with this tool, but, when i open the program, this tool capture mucho info, and memory consumption is up to 4gb.

A good option is an option to configure autoclean old log

Commented Unassigned: Add NLog example to the Receivers [16289]

$
0
0
After a lot of searching I found out that Log2Console needs the Chainsaw Target in NLog, and the TCP/IP one that the receivers dialog shows doesn't work (atleast for ASP.NET apps).

Could you add an NLog example to the UDP receiver example, below the log4net example?

e.g.

```
<target name="n1" xsi:type="Chainsaw" address="udp://127.0.0.1:7071" />
<logger name="*" minlevel="Info" writeTo="n1" />
```

Also make sure people know it has to be an IP address, as localhost won't work.
Comments: ** Comment from web user: WouterSF **

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.

New Post: Encoding in message details

$
0
0
For russian symbols in Message Datail you need change class LogMessage

From:
    public string GetMessageDetails()
    {
        var sb = new StringBuilder();
        sb.Append(@"{\rtf1\ansi ");

To:
    public string GetMessageDetails()
    {
        var sb = new StringBuilder();
        sb.Append(@"{\rtf1\ansi\ansicpg1251");

Created Unassigned: Can we have the short logger name column back? [17606]

$
0
0
Thanks for Log2Console - I use the UDP receiver on all my projects, and name all my loggers with periods (.) to take advantage of your treeview (generally matching the full class name including namespace).
I upgraded from 1.5 to 1.6.0.2, and noticed that the column showing the short name of the logger (i.e. just the part after the last period) is no longer shown. This means I can't really tell which logger is writing each message, since some of my logger names are 80 characters long!
Can you please add in a LoggerShortName column type?

Created Unassigned: Missing png resources in source code [17607]

$
0
0
I just downloaded the source, and tried to compile, and the following images are missing from Log2Console/res:
collapse_all.png
pin.png
unselect.png

New Post: Deploy Log2Console via GPO

$
0
0
We are trying to push out Log2Console to a large number of our users who are developers.
We are getting errors when trying to accomplish this.
The error is 1603.
The install of application Log2Console from policy QDevApps failed. The error was : %%1603
Has anyone had success doing this?

Commented Unassigned: Missing png resources in source code [17607]

$
0
0
I just downloaded the source, and tried to compile, and the following images are missing from Log2Console/res:
collapse_all.png
pin.png
unselect.png
Comments: ** Comment from web user: alexandrul **

collapse_all.png

Commented Unassigned: Missing png resources in source code [17607]

$
0
0
I just downloaded the source, and tried to compile, and the following images are missing from Log2Console/res:
collapse_all.png
pin.png
unselect.png
Comments: ** Comment from web user: alexandrul **

pin.png

Commented Unassigned: Missing png resources in source code [17607]

$
0
0
I just downloaded the source, and tried to compile, and the following images are missing from Log2Console/res:
collapse_all.png
pin.png
unselect.png
Comments: ** Comment from web user: alexandrul **

unselect.png

Created Unassigned: Taskbar flashes for log levels that are being filtered out [17633]

$
0
0
Hey, love log2console. We have quite intensive logging at the trace level but for the most part we only care about debug levels and up. Log2Console can' filter out Trace logs by setting it to the debug level, but the taskbar will still flash when a trace level message is logged.

It's kinda annoying cause you will keep checking log2console for what got logged and then there's nothing there, because it was at a level you don't care about.

Commented Unassigned: log2conosle remoting appender for log4net doesnt work [16286]

$
0
0
i have the following app.config:


<log4net>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="S3Logger.log"/>
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="10MB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %level %logger - %message%newline" />
</layout>
</appender>
<appender name="RemotingAppender" type="log4net.Appender.RemotingAppender" >
<sink value="tcp://localhost:7070/LoggingSink" />
<lossy value="false" />
<bufferSize value="1" />
</appender>

<!-- Setup the root category, add the appenders and set the default level -->
<root>
<appender-ref ref="RollingFileAppender" />
<appender-ref ref="RemotingAppender" />
</root>
</log4net>


for some reason i get the logging only in file but not via log2console ".net remoting reciever" any idea why?

(i am using vs2012 and log4net installed via nuget)

My sample code:

[assembly: log4net.Config.XmlConfigurator(Watch = true)]

namespace Log4NetLog2ConsoleTest1
{
class Program
{
static void Main(string[] args)
{
var log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
while (true)
{
log.Debug("Test1 - Debug" + DateTime.Now.ToString());
System.Threading.Thread.Sleep(300);
log.Info("Test1 - Info" + DateTime.Now.ToString());
System.Threading.Thread.Sleep(300);
log.Error("Test1 - Error" + DateTime.Now.ToString());
System.Threading.Thread.Sleep(300);

}
}
}
}


log2Console configuration:

.Net Remoting: Append Host Name to Logger: True Remote sink name: LoggingSink Remote TCP Port Number: 7070


By the way, the application used the log4net version is 1.2.11.0
Comments: ** Comment from web user: MrHIDEN **

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?

Created Unassigned: NewLine in Log Message Stripped [17658]

$
0
0
When sending a log message which contains a newline character, it is stripped from the message view. If the message is copied from the Message Details, the newlines are not present there as well.

Patch for log2console\src\Log2Console\Log attached.

Created Unassigned: Multiple log entries send over same connection lost. [17661]

$
0
0
The simple fix would be to change the Sample Client Configuration from
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505"/>
to
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505" KeepConnection="false" />

Another option would be to split up the log entries and parse them 1 at a time. The patches for this approach are attached.

Commented Unassigned: Multiple log entries send over same connection lost. [17661]

$
0
0
The simple fix would be to change the Sample Client Configuration from
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505"/>
to
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505" KeepConnection="false" />

Another option would be to split up the log entries and parse them 1 at a time. The patches for this approach are attached.
Comments: ** Comment from web user: DewJunkie **

2nd patch file

Commented Unassigned: Multiple log entries send over same connection lost. [17661]

$
0
0
The simple fix would be to change the Sample Client Configuration from
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505"/>
to
<target name="TcpOutlet" xsi:type="NLogViewer" address="tcp://localhost:4505" KeepConnection="false" />

Another option would be to split up the log entries and parse them 1 at a time. The patches for this approach are attached.
Comments: ** Comment from web user: DewJunkie **

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.

New Post: Log2Console development

$
0
0
I feel like I was way to impatient, but I forked the svn2github version on github, and made some revisions. Mainly I just didn't want the changes only on my machine, and I don't believe I'm able to make a branch on CodePlex without being a project member.

New Post: Add a json parser

$
0
0
Hello everyone,

In our company we currently evaluate the possibility to use log2consol feeded with Nlog.
But not based on log4jxml message but on json layout.
We want specialized a UDPReciever with a json parser.

Someone else could be interested, about this feature ?

Thanks,
Schnat92


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>