pbakondy / filelogger Goto Github PK
View Code? Open in Web Editor NEW:memo: Ionic File Logger
License: MIT License
:memo: Ionic File Logger
License: MIT License
Hello is there a portable way to get file size? I'd like to delete the file if it exceeds a particular limit to manage space.
I tried to user $filelogger in an Ionic project. Ripple Emulator is sometimes used during development process. But my application complains about "missing exec:File.resolveLocalFileSystemURI".
Filelogger plugin don't need to fully support Ripple environment but is it possible to switch correctly to console.log() in that case ?
I am using this module for debug and logging errors when running my ionic app in my android device. I would like to access this file at a later stage for reading. Could you please let me know where is this file stored in my android device and how I could have access to it? Thanks in advance.
Why not using $log instead of console.log() ?
Hi, upon testing your plugin I found that if a internal webserver is used*, the log file is stored under cdvfile://localhost/files/.txt, which (in my case) is inaccessible although it gets written, it's just useless for further debugging if it only persists in an inaccessible location during runtime.
I found in your sourcecode, if I changed all appearances of cordova.file.dataDirectory to cordova.file.externalDataDirectory the file gets created and I can find it under /Android/data//files/.txt.
For now I will fork your plugin, however I thought maybe others faced the same issues and a fileDirectory option would be a nice addition.
*see these plugins: cocoon-cordova-labs-local-webserver, cocoon-cordova-labs-wkwebview-engine-localhost, cocoon-cordova-plugin-wkwebview-engine
Using Ionic 1.3.3 & cordova 6.5.0, my device is a Samsung Galaxy J3 2016
Hii,
I wanted to know if this plugin can support Ionic 2 as well. If yes can you provide a small sample code of how it can be used !!
Thank You.
Would it be possible to add an option to specify your own date format for the log timestamp?
Hi, thank you for your fabulous library.
I had a feature request for future consideration -- ability to write to the top of the file.
Justification:many logs would like to have the latest log at the top, especially when the log file grows.
Hello, thank you for this lovely plugin.
A quick side note:
The plugin for cordova is now called cordova-plugin-file so you may want to modify your note as
cordova plugin add cordova-plugin-file
Now to my question: Have you by any chance tested if this works on Android as well across various devices? I have limited access to android devices and am hoping I can use the log file to debug problems if users report them.
I love it that your plugin does not make me have to worry about file paths etc. I am hoping it abstracts correctly for android as well ๐
Thanks again
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.