Skip to content

Commit

Permalink
chore: add json example
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 18, 2023
1 parent 17df639 commit 943992d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/json.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { createConsola } from "consola";

const consola = createConsola({
reporters: [
{
log: (logObj) => {
console.log(JSON.stringify(logObj));
},
},
],
});

consola.log("foo bar");

0 comments on commit 943992d

Please sign in to comment.