gernest / utron

A lightweight MVC framework for Go(Golang)
MIT License
2.22k stars 149 forks source link

Add Log field to Context #76

Closed gernest closed 7 years ago

gernest commented 7 years ago

This is adds Log field to Context, allowing the Controller to log messages using the application logger.

This field is ensured to never be nil. If there is no any application logger set then the default logger which writes to stdout is used.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 76.242% when pulling 1041f555edc6b268c9df8fa9025978f44120e41e on dev into e06e0ed5ff970b3206c87526483101fb42c33f90 on master.