News for hackers. Stuff that matters.
Re:Blackbird - Open Source JavaScript Logging Utility by arethuza on Monday April 11, 2011 @06:55AM (#2432142)
That's not a bad idea. Some suggestions/ideas:

- It would need to be asynchronous

- It would be nice to collect a log locally and send it centrally under specific circumstances (e.g. an error occurs send everything that has been logged so far)

- Using some kind of local storage option might be nice (e.g. the interface to SQLite that WebKit-based browsers have).

Re:Blackbird - Open Source JavaScript Logging Utility by retube on Monday April 11, 2011 @08:17AM (#2432290)
It'd be fairly simple I think: a global object with .info(), .debug() etc methods. You'd have to make x-domain ajax calls to post back the message as the log server would have to run on another port. Various config options to change server, port, log-level defaults. And then a simple server to handle the posts and write out to log file on disk. You could even have a hosted/cloud service for those that didn't want to run their own logging server.
Re:Blackbird - Open Source JavaScript Logging Utility by retube on Monday April 11, 2011 @08:52AM (#2432371)
ha - already exists: http://log4javascript.org/