@comunica/logger-pretty
v4.0.2
Published
A comunica logger that pretty-prints.
Downloads
13,845
Readme
Comunica Bus SPARQL Parse
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.
Install
$ yarn add @comunica/logger-pretty
Usage
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' }),
});