IBM / go-sdk-core

The go-sdk-core repository contains core functionality required by Go code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
30 stars 24 forks source link

feat(logger): support logging to stdout and stderr #89

Closed dpopp07 closed 3 years ago

dpopp07 commented 3 years ago

Currently, all logs performed by the default logger in the Go core will print to Stdout. However, error messages should be logged to Stderr. This PR implements a change to the logger that sends error logs to Stderr and all other logs to Stdout.

Additionally, this PR adds a log statement to the request builder to log the full request for debugging purposes.

padamstx commented 3 years ago

Closing this PR as it was superceded by https://github.com/IBM/go-sdk-core/pull/91