]> git.r.bdr.sh - rbdr/cologne/blame_incremental - test/basic.js
Bump version
[rbdr/cologne] / test / basic.js
... / ...
CommitLineData
1if (typeof require === "function") {
2 require("cobalt-log");
3}
4
5var co = new Cobalt.Console({
6 loggers : [
7 new Cobalt.Logger.JsConsole({
8 formatter : Cobalt.Formatter.Token,
9 formatterOpts : {
10 formatString : "[{{_level}}] {{message}} {{customParam}}"
11 }
12 })
13 ]
14})
15
16// TODO: Do this whole thing with tellurium.
17
18co.log("Log - Normal");
19co.debug("Warn - Normal");
20co.info("Info - Normal");
21co.notice("Notice - Normal");
22co.warn("Warn - Normal");
23co.error("Error - Normal");
24
25var logObject = co.extendLog({
26 message : "Extended Log Object",
27 customParam : "<3"
28});
29
30co.log(logObject);
31co.debug(logObject);
32co.info(logObject);
33co.notice(logObject);
34co.warn(logObject);
35co.error(logObject);