A logger that prints to standard output.
Click here to learn more about logging.
This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.
Click here if you just want to query with Comunica.
$ yarn add @comunica/logger-pretty
const QueryEngine = require('@comunica/query-sparql').QueryEngine;
import {LoggerPretty} from "@comunica/logger-pretty";
const bindingsStream = await new QueryEngine().queryBindings('SELECT * WHERE { ?s ?p ?o }', {
sources: ['http://fragments.dbpedia.org/2015/en'],
log: new LoggerPretty({ level: 'debug' }),
});