File logger for Ionic 2

I want to generate a log files which can contain all the console.log() entries from my App.
This example is of Ionic 1- https://github.com/pbakondy/filelogger but i dont think it works on Ionic 2.
Does anyone else has implemented anything like this in Ionic 2.If yes Please provide some sample code.

@sahildaga95 did you find any solution for this? I am also looking for a logger for ionic2 that would write to a file rather than console.

No, I didn’t find any plugin that could do the task.

I have put together a quick and dirty file logger using cordova file plugin. You can download it from

V

Here’s a simple file logger for Ionic 2+

SmartMoveSystems/ionicLogFileAppender
ionicLogFileAppender - Simple log file appender for Ionic 3

Full disclosure: I am the developer