paketo-buildpacks / libpak

An opinionated extension to the libcnb Cloud Native Buildpack Library
Apache License 2.0
15 stars 17 forks source link

Default Logger to os.Stdout #276

Closed c0d1ngm0nk3y closed 4 months ago

c0d1ngm0nk3y commented 1 year ago

fixes #46

Summary

Uses Stdout as default log target.

Use Cases

By default, the bard.Logger is an empty object and does not log anything. Adding the logger to the factory function, is not really an option since it would be incompatible and need a major version bump. This change makes sure that the logs are at least written to stdout by default and since Logger is public, it can then be modified.

Checklist

c0d1ngm0nk3y commented 4 months ago

Apparently it is somehow expected to hide log messages by default (see comment)