Giter VIP home page Giter VIP logo

logwatch's Introduction

LogWatch

Minimalistic viewer for NLog, Log4Net and others.

or download binaries

LogWatch allows you to view output from NLog and Log4Net loggers.

Features

  • Designed to handle large log files (hundreds of megabytes, it doesn't read all the data into memory)
  • Live file streaming support (view files that are currently being updated by the logger)
  • Built-in support for CSV and Log4J XML formats
  • Automatic log format selection
  • Receives log records via network
  • Provides quick jump to a next Trace/Debug/Info/Warn/Error/Fatal record functionality
  • Search using simple text search or regular expressions (press Ctrol+F to activate)
  • Ability to define custom log parser using Lex syntax

Sources

LogWatch has built-in support for the following log sources:

  • File source
  • UDP source

When using file source LogWatch sets a monitor on the file and provides live updates on the records.

Formats

The application supports the following log formats out of the box:

LogWatch automatically determines format of the source.

CSV delimeter can be ; or ,. The log file must have header with some of the following feillds (case sensitive):

time
message
logger
level
exception

Here is an example configuration of CSV layout for NLog:

<target name="file" xsi:type="File" encoding="utf-8" fileName="mylog.log">
  <layout xsi:type="CsvLayout">
    <column name="time" layout="${longdate}" />
    <column name="message" layout="${message}" />
    <column name="logger" layout="${logger}" />
    <column name="level" layout="${level}" />
    <column name="exception" layout="${exception:format=ToString}" />
  </layout>
</target>

Log4J XML is the default format for NLogViewer. Here is an example configuration for NLog:

<target name="viewer" xsi:type="NLogViewer" address="udp://127.0.0.1:13370" includeNLogData="true">
  <parameter name="exception" layout="${exception:format=ToString}"/>
</target>

NLogViewer sends records via UDP in Log4J XML format.

TODO

  • documentation
  • custom log record properties

logwatch's People

Contributors

shse avatar

Watchers

lshain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.