diff --git a/examples/json.ts b/examples/json.ts new file mode 100644 index 00000000..9da08483 --- /dev/null +++ b/examples/json.ts @@ -0,0 +1,13 @@ +import { createConsola } from "consola"; + +const consola = createConsola({ + reporters: [ + { + log: (logObj) => { + console.log(JSON.stringify(logObj)); + }, + }, + ], +}); + +consola.log("foo bar");