Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

320
Views
NestJS logs have weird characters in log-management tools

a simple question with a possibly simple answer I just cant seem to find:

We're using NestJS as our server-side javascript framework for a micro-service based infrastructure.

Working locally with the built in NestJS logger, or with our own class extending and implementing the logger functions, the console seems to print out the logs exactly as expected, for example:

[Nest] 41477  - 06/01/2022, 5:46:39 PM     LOG [Bootstrap] Mapped {/api/v1/accounts/:accountId/positions/:positionId/matches, GET} route

However, when running these service on cloud platforms, many (if not all) show-me-the-pod-logs tools add many "special" characters, for example:

[32m[Nest] 19  - [39m06/01/2022, 3:29:51 PM [32m    LOG[39m [38;5;3m[RouterExplorer] [39m[32mMapped {/api/v1/accounts/:accountId/positions/:positionId/matches, GET} route[39m[38;5;3m +1ms[39m

As you can see, it's almost the same, but not quite.. what are all of these [32m and [39m being added all over the place? This appears to be the same case in many of our tools: Datadog, ArgoCD pod logs, Rancher pod logs, etc.

What are these, and how can we get rid of them?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

they are there for coloring the output (it's handled here). You can disable them by defining any value to the env. var. NO_COLOR (in your cloud environment, I guess)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!