V
V
Verstad2020-11-27 20:51:30
HTML
Verstad, 2020-11-27 20:51:30

How to add a logger to a project?

Started disassembling with webpack. They gave the task to connect the logger. https://www.npmjs.com/package/missionlog . I installed registered in package.json. How to check ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Shcherbakov, 2020-11-27
@Verstad

What is unclear specifically?
The Initialize section tells you how to configure your logger. You should put this in your application/project entry point (i.e. your js file or root component if you are still using some framework).
The Usage section tells you how to call it so that the logger catches it. Those. in the place where you need to pledge something, you need to write the necessary line from Usage, depending on the type of error/warn/info.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question