I
I
IDONTSUDO2020-01-15 18:06:45
Node.js
IDONTSUDO, 2020-01-15 18:06:45

Functions depending on the launch mode?

I have a nodejs server. And I would like it to have some logging depending on what mode I'm running in. How can this be achieved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-01-15
@IDONTSUDO

How can this be achieved?

For example, by using environment variables and configuring the logging mode before starting the main application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question