Skip to content

Commit

Permalink
[FAB-8656] Initial logging modules
Browse files Browse the repository at this point in the history
This change updates the patches to include the logging module.

Change-Id: I1b3fabf01e8097dc97685b700abc3c22b4fe41e7
Signed-off-by: Troy Ronda <troy@troyronda.com>
  • Loading branch information
troyronda committed Mar 5, 2018
1 parent 3c009b4 commit 19065b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -38,7 +38,7 @@ index 0000000..eca57b3
+var cfLogBridge *cLogger
+
+func init() {
+ logger = logging.NewLogger("fabric_sdk_go")
+ logger = logging.NewLogger("fabsdk/fab")
+ cfLogBridge = &cLogger{}
+ clog.SetLogger(cfLogBridge)
+}
Expand Down
Expand Up @@ -48,7 +48,7 @@ index 00000000..fdeb3a4f
+
+// MustGetLogger bridges calls the Go SDK NewLogger
+func MustGetLogger(module string) *Logger {
+ fabModule := "fabric_sdk_go"
+ fabModule := "fabsdk/fab"
+ logger := logging.NewLogger(fabModule)
+ return &Logger{
+ Logger: logger,
Expand Down

0 comments on commit 19065b8

Please sign in to comment.