Skip to content

Commit a0b7dca

Browse files
committed
feat: add debug logs
1 parent 9be7c53 commit a0b7dca

7 files changed

Lines changed: 139 additions & 200 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ compared to the database version.
2424
- [Usage](#usage)
2525
- [Example](#example)
2626
- [Configuration](#configuration)
27+
- [Debug](#debug)
2728
- [Related resources](#related-resources)
2829
- [Contributing](#contributing)
2930
- [License](#license)
@@ -231,6 +232,11 @@ this.bootOptions = {
231232
};
232233
```
233234

235+
## Debug
236+
237+
To enable debug logs set the `DEBUG` environment variable to `loopback:migration:*`, see
238+
[Setting debug strings][lb4-debug-strings] for further details.
239+
234240
## Related resources
235241

236242
- [Evolutionary Database Design][evolutionary-database-design]
@@ -261,5 +267,6 @@ This project is licensed under the MIT license. See the [LICENSE](LICENSE) file
261267
[lb4-binding-tags]: https://loopback.io/doc/en/lb4/Binding.html#describe-tags
262268
[lb4-repositories]: https://loopback.io/doc/en/lb4/Repositories.html
263269
[lb4-dependency-injection]: https://loopback.io/doc/en/lb4/Dependency-injection.html
270+
[lb4-debug-strings]: https://loopback.io/doc/en/lb4/Setting-debug-strings.html
264271
[evolutionary-database-design]: https://www.martinfowler.com/articles/evodb.html
265272
[semantic-versioning]: https://semver.org/

package-lock.json

Lines changed: 50 additions & 179 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
"@loopback/repository": "*"
6767
},
6868
"dependencies": {
69-
"compare-versions": "^4.1.3"
69+
"compare-versions": "^4.1.3",
70+
"debug": "^4.3.4"
7071
},
7172
"devDependencies": {
7273
"@loopback/boot": "4.1.2",

0 commit comments

Comments
 (0)