OpenF2 / F2

Redefining web integration for the financial services community
Apache License 2.0
130 stars 62 forks source link

Updated F2.log API #123

Closed markhealey closed 11 years ago

markhealey commented 11 years ago

We've updated the F2.log API to support all the console methods (clear, error, group, info, warn, etc) in addition to providing better handling of logged messages.

Previously, F2.log(arg) would output an array of values and often those values would get truncated or abbreviated in the console. The new F2.log will pass arguments directly to console.log (or whichever console method you provide, such as console.warn).

Usage is easy:

F2.log(args) => console.log(args) F2.log(methodName, args) => console[methodName](args) example F2.log('warn', args)

See more in ../src/F2.js.

This is short-term fix for truncated messages while we look closer at #91.