Coder Social home page Coder Social logo

Is serilog file format supported? about tailviewer HOT 4 OPEN

raelb avatar raelb commented on July 17, 2024
Is serilog file format supported?

from tailviewer.

Comments (4)

pikoslav avatar pikoslav commented on July 17, 2024 1

What about full message template, f.e.:
[{Timestamp:yyyy-MM-dd HH:mm:ss.fff} {Level:u3}] {Message:lj} {Properties} {NewLine}{Exception}

(from the same Wiki above)?

from tailviewer.

jrod567 avatar jrod567 commented on July 17, 2024

Same issues here. Serilog shows under the Custom log formats area so it was supported at some point. I've tried using the custom formats, but no luck either.

from tailviewer.

Kittyfisto avatar Kittyfisto commented on July 17, 2024

@raelb, @jrod567 Sorry for the late reply, I've been on an extended hiatus as far as my development projects were concerned.

The latest Tailviewer version (which is not yet released, but good enough to be used - I use it in my daily business) is capable of parsing serilog files, given that one configures the precise format string with tailviewer first:

  1. Download and install the latest Tailviewer version: https://ci.appveyor.com/project/Kittyfisto/sharptail/build/artifacts
  2. Start Tailviewer, click File and then Settings
  3. Click the "Plus" Icon next to Serilog in the list of custom file formats (yes, the UI is horrible)
  4. Enter {Timestamp:yyyy-MM-dd HH:mm:ss.fff K} [{Level:u3}] {Message} in the right-most input field:
    image
  5. Restart Tailviewer

Given that the formatting string is correct, you should see that Tailviewer has detected the log levels correctly and colorized the log entries accordingly:

image

The format string should be the same one that you use to configure serilog (See https://github.com/serilog/serilog/wiki/Formatting-Output), but if you find discrepancies, please let me know - you'll be the first ones to try this out besides myself. Plus the UI is really unhelpful and doesn't provide any useful feedback when inputing these format strings.

from tailviewer.

jrod567 avatar jrod567 commented on July 17, 2024

Kittyfisto - Thanks so much for the response - this is working great for me now!
I ended up using the following Serilog format: {Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level:u3}] {Message}

from tailviewer.

Related Issues (20)

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.