forked from hyperledger-archives/indy-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update readme - Add logging - Generate distinct wallets on every demo run - Prefix wallet names with 'node_vcx_demo_' - Use winston logger with colorprinting Signed-off-by: Patrik Stas <[email protected]>
- Loading branch information
1 parent
db599d1
commit 869515f
Showing
6 changed files
with
295 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const { createLogger, format, transports } = require('winston'); | ||
const { label } = format; | ||
|
||
const prettyFormatter = format.combine( | ||
format.printf( | ||
info => `${info.label} [${info.level}]: ${info.message}` | ||
) | ||
); | ||
|
||
const logger = createLogger({ | ||
level: 'debug', | ||
format: format.combine( | ||
label({ label: 'Demo Faber:' }), | ||
format.colorize({all: true}), | ||
prettyFormatter | ||
), | ||
transports: [ | ||
new transports.Console(), | ||
] | ||
}); | ||
|
||
export default logger; |
Oops, something went wrong.