Closed nathanfallet closed 4 years ago
Thanks for the patch, but I don't really want to complicate MicroExpress. Sorry! For more functionality, please checkout Macro. It's like MicroExpress, but with the intention to be more full featured (like Noze.io).
In fact it does feature better logging, including the JS like console.log
and friends. Build on top of the official Server Side Swift Logging framework: Console.swift.
This is a tiny change, but it allows to capture the logs to do something else with it than just print it.
By default, the function logger prints the logs (like previously, no changes)
But it can be personalized:
For example, in an iOS app, we can capture this log and append it into a UITextView:
So I think this is a useful change (I will personally use it, but other people might find it useful)