Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom formatting idea: -t,--title FIELDS for a list of fields to format into title line #5

Open
trentm opened this issue Mar 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@trentm
Copy link
Owner

trentm commented Mar 26, 2021

If I have some log output where one or a few common (and short) fields are typically present and I want to approach one line per log record, then I could use:

... | ecslog -t reqId

to put the reqId field in the title line. If/when have config file support, this could be a thing to add to custom formats.

@trentm
Copy link
Owner Author

trentm commented Jun 18, 2021

A related idea from #15 discussion is:

  • add a oneline format (title line, then render the rest all on the same line after the message), perhaps with a -1 shortcut flag

Then one could use ecslog -1i reqId to get the above. This isn't quite the same use case, however.


Perhaps -T for this. I suspect I'll want -t ... for time format options (#17).

@trentm trentm added the enhancement New feature or request label Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant