We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e620208 commit a8c5980Copy full SHA for a8c5980
README.md
@@ -101,6 +101,8 @@ npx tsx example.ts
101
## Using the in-built logger
102
103
```ts
104
+// example.ts
105
+
106
import { Scraper, Logger } from ".";
107
// Where you import this from might vary. You just need to reference the top-level index.ts file.
108
@@ -111,7 +113,7 @@ async function main() {
111
113
// You may create a logger class if you want to log data.
112
114
let logger = new Logger({
115
// The name also defines the file name, unless you provide a custom file path.
- name: "logger",
116
+ name: "mylogger",
117
// The level is set to "none" by default.
118
level: "debug"
119
})
0 commit comments