GithubHelp home page GithubHelp logo

fabbbiob / nlog.webviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yurikolesnikov/nlog.webviewer

0.0 1.0 0.0 156 KB

Web interface for viewing NLog files with specific format on remote server.

C# 57.58% HTML 8.98% CSS 22.73% JavaScript 10.33% ASP 0.38%

nlog.webviewer's Introduction

NLog WebViewer

Web interface for viewing NLog files with specific format on remote server.

Usage sample

Add in web.config configSections

<section name="nlog.webviewer" type="NLog.WebViewer.Config, NLog.WebViewer" />

Sample configuration section:

<nlog.webviewer
    Fields="Date|Level|Logger|IpAddress|Message"
    Separator="|"
    FileFormat="{0:yyyy-MM-dd}.txt"
    Path="~/App_Data/Logs" />

is valid for following NLog target:

<target name="logfile" type="File" encoding="utf-8"
    fileName="${basedir}/App_Data/Logs/${shortdate}.txt"
    layout="${longdate}|${uppercase:${level}}|${logger}|${aspnet-request:serverVariable=remote_addr}|${message}${onexception:${newline}${exception:format=tostring}}" />

Following handler in system.webServer\handlers could be used to access logs page:

<add name="LogsViewHandler" verb="*" path="Logs.axd"
     type="NLog.WebViewer.LogViewerHandler, NLog.WebViewer"
     resourceType="Unspecified" requireAccess="Read" />

Then log page will be available via link: your_site_name/Logs.axd

nlog.webviewer's People

Contributors

yurikolesnikov avatar

Watchers

 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.