Skip to content

Commit

Permalink
Update compile.md
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Jul 1, 2017
1 parent 402886d commit e10bd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/usage/compile.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ If you want access to the compiled Vega spec from a Javascript program, you can
var vgSpec = vl.compile(vlSpec).spec;
```

You could also pass in a customize logger as an optional parameter, which allow you configure your output messages.
To custome how errors and warnings are handled, you can pass a customize logger to the compile function. By default, warnings and errors are printed to the JavaScript console.

```js
var vgSpec = vl.compile(vlSpec, logger).spec;
```

A custom logger implementation should implement the following interface:
A custom logger should implement the following interface:

```typescript
interface LoggerInterface {
Expand Down

0 comments on commit e10bd98

Please sign in to comment.