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

248
Views
JS: registrador opcional como parte del SDK que se puede activar/desactivar

Estoy escribiendo un SDK y me gustaría tener un montón de registros allí que el usuario del SDK pueda activar o desactivar.

Actualmente tengo esto en mi index.ts :

 winston.configure({ level: (process.env.DEBUG || process.env.VUE_APP_DEBUG) ? 'debug' : 'info', format: winston.format.combine( winston.format.json(), winston.format.prettyPrint(), winston.format.colorize({ all: true }), ), transports: [ new winston.transports.Console(), ], });

Tenía la esperanza de que con solo instalar el paquete con npm y tener una variable DEBUG o VUE_APP_DEBUG en el archivo .env del usuario, el registrador se encendería o apagaría.

Por desgracia, esto no funciona :) ¿Cuál es la forma correcta de hacerlo?

about 4 years ago · Juan Pablo Isaza
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!