ionic-logging-viewer2.0.0 • Public • Published
The dependencies used by the latest version are the same as needed for Ionic 4.0.0. For older versions use:
The logging viewer is a small component which can be used in your Ionic app for displaying the current logs, written by ionic-logging-service. The viewer is meant for development and testing purposes, not for production.
It provides two components:
can be embedded in any web page using the directive
a complete implemented modal containing the
Additionally, there are two components for filtering the data:
LoggingViewerLevelsComponent: allows filtering by log level
LoggingViewerSearchComponent: allows filtering by an arbitrary expression
A sample app using these components is ionic-logging-viewer-app.
npm install ionic-logging-viewer --save
LoggingViewerModule in to your
If you want to use the directive in one of your pages, just add
LoggingViewerLevelsComponent and LoggingViewerSearchComponent directives
For filtering the log messages, you can add also these directives to your page.
It is recommended to include them in
ion-toolbar, but it is not necessary:
public async openModal: Promise<void>
multi language support
LoggingViewerComponent does not need multi language support, since it just
displays the logged data. The same applies to
But for the
LoggingViewerModalComponent, multi language support is needed,
since the modal contains some translatable texts. Therefore,
loggingViewerModalManager.openModal() has a
language parameter, which you can
use to select the language. Currently
de are supported.
If you need another language, either open an issue, or just use the
This parameter you can use to pass your completely own texts.
Just fill the
see API documentation.