Skip to content

Commit 9b5c689

Browse files
committed
add verbose debugging option
1 parent 938b5f1 commit 9b5c689

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ Use the `g` command to see a list of generators.
4141
$ iron g
4242
```
4343

44+
**Run Iron in verbose mode (extended logging)**
45+
46+
```
47+
$ IRON_DEBUG=true iron
48+
```
49+
4450
## Directory Structure
4551
The application will have the following directory structure:
4652

@@ -145,7 +151,7 @@ $ cd app/
145151
$ meteor mongo
146152
```
147153

148-
**NOTE**
154+
**NOTE**
149155

150156
*Ideally running `iron mongo` in the project directory should work but it doesn't for some reason and is being tracked in issue #136*
151157

lib/tools/logging.js

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ module.exports = {
1919
console.log(cli.red.bold.apply(this, arguments));
2020
},
2121

22+
logDebug: function () {
23+
if (process.env.IRON_DEBUG)
24+
console.log(cli.magenta.apply(this, arguments));
25+
},
26+
2227
logUsage: function () {
2328
var header = cli.blackBright;
2429

0 commit comments

Comments
 (0)