-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nx): add verbose flag to @nrwl/tao which will output stack trace…
… on error
- Loading branch information
1 parent
e13910d
commit 4b4a5dc
Showing
8 changed files
with
144 additions
and
85 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
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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { logging, terminal } from '@angular-devkit/core'; | ||
import { createConsoleLogger } from '@angular-devkit/core/node'; | ||
import { terminal } from '@angular-devkit/core'; | ||
|
||
export const logger = createConsoleLogger( | ||
false, | ||
process.stdout, | ||
process.stderr, | ||
{ | ||
warn: s => terminal.bold(terminal.yellow(s)), | ||
error: s => terminal.bold(terminal.red(s)), | ||
fatal: s => terminal.bold(terminal.red(s)) | ||
let logger: logging.Logger; | ||
export const getLogger = (isVerbose: boolean = false) => { | ||
if (!logger) { | ||
logger = createConsoleLogger(isVerbose, process.stdout, process.stderr, { | ||
warn: s => terminal.bold(terminal.yellow(s)), | ||
error: s => terminal.bold(terminal.red(s)), | ||
fatal: s => terminal.bold(terminal.red(s)) | ||
}); | ||
} | ||
); | ||
return logger; | ||
}; |
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
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