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

Can "pretty" mode still display the json message on 1 line #224

Open
johhnsmmith198 opened this issue Mar 11, 2023 · 0 comments
Open

Can "pretty" mode still display the json message on 1 line #224

johhnsmmith198 opened this issue Mar 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@johhnsmmith198
Copy link

johhnsmmith198 commented Mar 11, 2023

I have an issue while running tslog within aws SAM.
I am getting this kind of squashed output:

Screenshot from 2023-03-11 20-34-34

While running it outside of SAM I am getting a very wide display

Screenshot from 2023-03-11 20-35-02

Is it possible to configure the pretty formatting to format the json on 1 line while keeping the coloring?
NOTE: I am passing JSON object to logger.info (example logger.info({message: "test"}))

@johhnsmmith198 johhnsmmith198 added the enhancement New feature or request label Mar 11, 2023
@johhnsmmith198 johhnsmmith198 changed the title Can pretty still display the json message on 1 line Can "pretty" mode still display the json message on 1 line Mar 11, 2023
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