Git Product home page Git Product logo

gologparser's Introduction

GoLogParser

This repository hosts a binary tool tailored to parse log files generated by the standard Go log library. The tool enables users to extract and manipulate log messages, including removing timestamps by default and providing an option to display timestamps in the "hh:mm:ss" format.

How to Use:

  1. Download: Obtain the binary tool from the latest release in the repository.
  2. Execution: Run the binary alongside log files created using the standard Go log library.
  3. Options: Utilize the "--show-timestamp" flag to display timestamps in "hh:mm:ss" format.

Example:

$ tail -n4 log.txt | ./gologparser
Attempting to release lock
Successfully released lock
Failed to process job payload no stored jobs for the user
POST     "/job"

$ tail -n4 log.txt | ./gologparser --show-timestamp
04:44:45 Attempting to release lock
04:44:45 Successfully released lock
04:44:45 Failed to process job payload no stored jobs for the user
POST     "/job"

gologparser's People

Contributors

adilhusain-s avatar adil-adysh 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.