Thomasdezeeuw / logger

Logger is a asynchronous logging package for Go and it's build for customisation and speed.
MIT License
1 stars 0 forks source link

Add origin to Event #15

Open Thomasdezeeuw opened 8 years ago

Thomasdezeeuw commented 8 years ago

This could be a hostname or another name that uniquely identifies the origins (server/service) of the log event.

Change start to:

func Start(origin string, ews ...EventsWriter)

And add the origin to log operations by default, just like the timestamp. For Log check if it already set, then keep it, otherwise use the default origin.

Thomasdezeeuw commented 8 years ago

Maybe this is a task for the EventWriter... stil thinking on it.