I am developing an app with brunch. I am new to it and to trace an error I have to enable LOGGY_STACKS=true. How can I set it up?
Stack trace was suppressed. Run with `LOGGY_STACKS=true` to see the trace.
If you're on Windows, there's a few ways to go about setting this in your System Environment variables. The way to find it via your System / Computer properties is:
In the System Properties dialog, click the Advanced tab and click the Environment Variables... button.
Once there, under the first section where it says "User variables for YOUR_USER_NAME", click New and add LOGGY_STACKS
as the name and true
as the value.
It should give you lengthier stack-traces; hopefully it'll help you narrow down your issue in your configuration.
If you're not keen on "permanently" modifying your system environment vars and affecting other Brunch based projects, you can use the set
command within your NPM scripts
definition in package.json
, followed by a &&
combinator and the brunch
command.
This technique should work on both Unix and Windows machines.
// example package.json
{
"scripts": {
"start": "set LOGGY_STACKS=true && brunch watch --server",
"serve": "npm run start",
"build": "brunch b -p --env production",
"clean": "rm -rf public dist"
}
}
For reference, I use start
and stop
to cover my bases as not all NPM based services use the same initialization task names.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With