- cross-browser UI-less replacement of console.log - on client side.
- log storage system - on server side.
- Automated and invisible. No need to place special button/link/etc on your web page to have possibility to save/download prepared logs. Instead of outputting logs into browser's console, JS LogFlush save all logged data on your server automatically and invisibly for end user so he/she couldn't even guess about such hidden work. However you have to remember: it's only for debug purposes. You should not use it on live (production) sites.
How it works
As mentioned above, JS LogFlush consist of two parts: client-side and server-side.
The server-side part is a PHP script which processes two types of requests: initializing and flushing. Initializing request is sent when you include processing script in a web page. Each init request start/create a new log session with unique ID. Depending on that ID the processing script generates the code of client-side part. Also log session ID is sent with each flushing request to identify the log session which a request belongs to.
Server-side processing script (must be accessible on the web):
Some web page located anywhere (even on different domain from your processing script):