From 8023887d8e2699540108181c7e42137eb785d38f Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Thu, 28 Mar 2024 09:58:01 +0100 Subject: [PATCH] add logging information to readme --- README.md | 9 +++++++++ lib/CBDShapeExtractor.ts | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b005d1f..29bc92f 100644 --- a/README.md +++ b/README.md @@ -109,3 +109,12 @@ It won’t: ### Creating the Shape Template from ShEx _TODO_ + + +### Logging + +Logging can be enabled using the `DEBUG` environment variable, `DEBUG=extract-cbd-shape:*`. + + + + diff --git a/lib/CBDShapeExtractor.ts b/lib/CBDShapeExtractor.ts index b294acc..a685fe2 100644 --- a/lib/CBDShapeExtractor.ts +++ b/lib/CBDShapeExtractor.ts @@ -6,7 +6,7 @@ import { RdfStore } from "rdf-stores"; import { Quad, Term } from "@rdfjs/types"; import debug from "debug"; -const log = debug("cbdExtracted"); +const log = debug("extract-cbd-shape"); const df = new DataFactory();