log

log

The log snippet logs its arguments to the console.

You can use log for testing and debugging — for example, to check filter domain syntax and verify that snippets are executed inside content scripts without errors.

The log snippet accepts the same arguments as console.log().

Filter examples

Filter

Result

log OK

Logs OK to the console.

log Hello, world!

Logs Hello, world! to the console with two parameters.

Debugging

In debug mode, the string DEBUG precedes each snippet logged by log.