Categorygithub.com/zostay/logfmt
modulepackage
0.0.0-20230803143919-6f5bd8a43b6d
Repository: https://github.com/zostay/logfmt.git
Documentation: pkg.go.dev

# README

logfmt

A simple mixed text/JSON log formatter. It makes logs a little prettier and colorizes them. It's a little buggy and needs work, but I don't like reading JSON. This makes it so I don't have to, mostly.

Installation

go install github.com/zostay/logfmt@latest

Usage

kubectl logs deploy/app -f | logfmt

If you want more details run logfmt -h.

License

Copyright (c) 2022 Sterling Hanenkamp

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Functions

FormatLogLines ingests a file or standard input, breaks the input into lines, and attempts to parse each line.
No description provided by the author
IsWordCharacter matches letters, digits, marks, and combining punctuation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ScanWordsTheRightWay breaks up on word boundaries.

# Constants

These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
These are strings because they will be used to map into a configuration file someday.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
why doesn't golang's PCRE support the /x option..
No description provided by the author
No description provided by the author
WorryWords is the list of words that trigger worry-word highlighting in messages.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author