Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

169
Visualizações
How to copy the content of stdout/terminal/console into a file?

Basically, I am working on a project based on typescript and node. I am able to see the output in the console/terminal. I want to copy that into a file. By copying, I want the logs in console and in a file as well.

  1. I have tried different logging libraries, but they are able to save only those logs which are logged using them. In my project there are other logs which are printed from some modules that I have used and they don't get saved if I use a logger library.

  2. Overriding the console.log() will also not work in my case since I won't be able to save the logs which are logged using some other node module.

PS: The project is being used at mac as well as windows machine, so want the functionality to work on both machines.

Thanks for looking into this question and your suggestions/solutions in advance.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda