# Lagger
Go Client for interfacing with syslog servers

## Usage
###Optional:
Set a syslog destination
```
s := nsiSyslog.SetDestination("my.syslog.com")
```       
### Initialization:
```
log, err := nsiSyslog.NewSyslog("hostname_or_env_var", "application_name", logrus.InfoLevel)
if err != nil {
    return nil, errors.New("Unable to connect to syslog server")
}
```
### Usage:
```
log.Info(log.Message("custom_message")) // Logs just a custom string along with host and application name
log.Warn(log.WebLog(r, username, "custom message") // For web queries, includes information from r which is an http.Request
```
