Skip to content

Commit a8c5980

Browse files
Make examples more consistent
1 parent e620208 commit a8c5980

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ npx tsx example.ts
101101
## Using the in-built logger
102102

103103
```ts
104+
// example.ts
105+
104106
import { Scraper, Logger } from ".";
105107
// Where you import this from might vary. You just need to reference the top-level index.ts file.
106108

@@ -111,7 +113,7 @@ async function main() {
111113
// You may create a logger class if you want to log data.
112114
let logger = new Logger({
113115
// The name also defines the file name, unless you provide a custom file path.
114-
name: "logger",
116+
name: "mylogger",
115117
// The level is set to "none" by default.
116118
level: "debug"
117119
})

0 commit comments

Comments
 (0)