How to change log's level
In case you want to show just some especific information you can change log's level to filter the sensibility of what's shown, this guide has all the respective information.
This can be done in 2 ways:
In the browser's console, write:
then just press enter.
Somewhere in app.component.ts or the environment.ts codes add the next line:
being loglevel the id of the variable that contains the imported module.
import log level from 'loglevel', like this:
import * as loglevel from 'loglevel';
In both cases
LEVELrefers to one of the next words:
Is important to know that the first level contains the other ones and so on.
- In both cases you can filter the messages from the developer tools native filter.
- In case you want to disable the log, just use the
- In case you want to learn more about loglevel read the README.md from node_modules/loglevel.