How to Log Better in Your Ionic App With ngx-logger [v4]

We have all used the good old console.log many times before, but when you are serious about building a big app especially in the enterprise context logging is more important than ever.

In this Quick Win we will use super simple yet powerful way to improve the logging inside our Ionic app with the nxg-logger package. With this package the logs in our app will look like in the image below in no time!

ionic-ngx-logger

The full quick win with snippets is only available to Ionic Academy members.
Join now for

  • Unlimited access to all quick wins
  • Library of 40+ step-by-step video courses
  • Support for Ionic questions via Slack & private community

Join now & Unlock

Current member? LOGIN



Comments on How to Log Better in Your Ionic App With ngx-logger [v4]

  1. Florian Hübner says:

    I tried out ngx-logger a while ago but was not very happy with it and stopped using it. Maybe something changed recently but I never could control the logging class wise, only globally. Maybe I am spoiled by log4j but when I want to activate trace logging in a bigger project I dont want to switch it on globally but only for certain classes and I never found a good way to do that in ngx-logger.

    For remote logging I use sentry.io with some success but getting the sourcemaps to work correctly is somewhat of a pain…

Leave a Reply

Your email address will not be published. Required fields are marked *