Created
March 25, 2015 08:52
-
-
Save gclitheroe/8c40bc84da4227b8e4df to your computer and use it in GitHub Desktop.
Golang - Log to Logentries - TLS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/GeoNet/log/logentries" | |
"log" | |
"time" | |
) | |
func init() { | |
logentries.Init("LOGENTRIES_TOKEN") | |
} | |
func main() { | |
for { | |
log.Print("Hello Logentries.") | |
time.Sleep(time.Duration(5) * time.Second) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment