I have created the custom type with like following.
import (
"encoding/json"
"log"
"log/syslog"
"strconv"
"time"
)
type MyLogger struct {
w *syslog.Writer
LogName string
}
And I'm getting error syslog.writer undefined. Even I tried the same in golang play ground and its giving same error.