-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maker-appimage: Add and document debug logging.
• project: Document debug logging. • maker-appimage: Implement debug logging, via Node's `debug().enabled`.
- Loading branch information
1 parent
d8f633e
commit 10bfd06
Showing
2 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Troubleshooting ReForged project | ||
|
||
This document describes necessary steps to properly troubleshoot ReForged | ||
project's behaviour and collect | ||
|
||
## vs Electron Forge (TL;DR) | ||
|
||
- Unlike to Forge, ReForged aims to eliminate third-party dependencies unless | ||
it is greatly beneficial to use them, has no Node.js API or standard language | ||
equivalent and it is counter-productive to re-implement their feature-set. | ||
- For the reasons above, ReForged doesn't rely on `debug` module. It prefers | ||
Node's implementation of debug logging via `util`. | ||
- There's code for compatibility with `debug`'s `DEBUG` env variable, yet it | ||
might not support all wildcard formats (eg. exclusion). | ||
|
||
## General documentation | ||
|
||
ReForged has support for logging via `NODE_DEBUG` environment variable. | ||
You can find more information in [Node.js documentation][docs] about its | ||
syntax. | ||
|
||
In general, you might log the ReForge-related components using following | ||
sections and wildcards: | ||
|
||
- `reforged:*` – show debug logs of all ReForged-related components. | ||
- `reforged:[module-name]` – show debug log of the specific component, | ||
eg. `maker-appimage`. | ||
|
||
For convenience, you might also use `DEBUG` env variable, yet it might have | ||
for now limited support for the wildcard usage. | ||
|
||
Also see [Forge's `Support.md`][forge] for more information about the logging | ||
of each Forge's components. | ||
|
||
[docs]: https://nodejs.org/api/util.html#utildebuglogsection-callback "util.debuglog in Node.js API Documentation" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters