graniticio / granitic

Web/micro-services and IoC framework for Golang developers
https://granitic.io/
Apache License 2.0
35 stars 12 forks source link

Add stdout accesslog writing #47 #48

Closed u5surf closed 4 years ago

u5surf commented 4 years ago

Fixes #47

The value of returning AccessLogWriter.openFile is the os.File pointer which is specified by logPath, So if logPath is “stdout”, it can be written in stdout to specify os.Stdout

benhalstead commented 4 years ago

Thank you very much for submitting this so quickly. I will accept this pull request as is, but I have now written a guide for contributions (CONTRIBUTIONS.md in the root of the project). Please can you read this before you make any future contributions?

Thanks again!