diff options
| author | Ben Beltran <ben@freshout.us> | 2014-03-20 10:27:45 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@freshout.us> | 2014-03-20 10:27:45 -0600 |
| commit | db6bc3cb0117030b2d31d55850d91f58248a8e81 (patch) | |
| tree | 36092f8b3adf29e6d79b4c0e577b0b7ef485b0dc /test/basic.js | |
| parent | c829648b25585ce2e207bf69bd378d0415fd36bb (diff) | |
Cobalt 2.0 -> Now with neon 2.0
Diffstat (limited to 'test/basic.js')
| -rw-r--r-- | test/basic.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/basic.js b/test/basic.js new file mode 100644 index 0000000..90aadd6 --- /dev/null +++ b/test/basic.js @@ -0,0 +1,35 @@ +if (typeof require === "function") { + require("cobalt-log"); +} + +var co = new Cobalt.Console({ + loggers : [ + new Cobalt.Logger.JsConsole({ + formatter : Cobalt.Formatter.Token, + formatterOpts : { + formatString : "[{{_level}}] {{message}} {{customParam}}" + } + }) + ] +}) + +// TODO: Do this whole thing with tellurium. + +co.log("Log - Normal"); +co.debug("Warn - Normal"); +co.info("Info - Normal"); +co.notice("Notice - Normal"); +co.warn("Warn - Normal"); +co.error("Error - Normal"); + +var logObject = co.extendLog({ + message : "Extended Log Object", + customParam : "<3" +}); + +co.log(logObject); +co.debug(logObject); +co.info(logObject); +co.notice(logObject); +co.warn(logObject); +co.error(logObject); |