Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jun 26, 2023
1 parent c6f9f89 commit 49028ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/javascript-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ loadConfigFile(path.resolve(__dirname, 'rollup.config.js'), {

## Applying advanced log filters

While the command line interface provides a powerful way to filter logs via the [`--filterLogs`](../command-line-interface/#filterlogs-filter) flag, this functionality is not directly available when using the JavaScript API. However, Rollup exposes a helper `getLogFilter` to generate filters using the same syntax as the CLI. This is useful when specifying a custom `onLog` handler and for third party systems that want to provide a similar filtering experience as Rollup CLI. This function accepts an array of strings. Note that it does not split up comma-separated lists of filters like the CLI does.
While the command line interface provides a powerful way to filter logs via the [`--filterLogs`](../command-line-interface/index.md#filterlogs-filter) flag, this functionality is not directly available when using the JavaScript API. However, Rollup exposes a helper `getLogFilter` to generate filters using the same syntax as the CLI. This is useful when specifying a custom `onLog` handler and for third party systems that want to provide a similar filtering experience as Rollup CLI. This function accepts an array of strings. Note that it does not split up comma-separated lists of filters like the CLI does.

```js
// rollup.config.mjs
Expand Down

0 comments on commit 49028ad

Please sign in to comment.