Since the messages are sent in a goroutine, the program won't wait for
the last messages to be sent, resulting in lost logs.
This change introduce a new NewAsyncGraylogHook func to preserve API
compatibility. Users who want to get back the async behavior must now
use the Flush() func.
closes #1
Since the messages are sent in a goroutine, the program won't wait for the last messages to be sent, resulting in lost logs. This change introduce a new NewAsyncGraylogHook func to preserve API compatibility. Users who want to get back the async behavior must now use the Flush() func.