type LogFile struct { // contains filtered or unexported fields }
func New(filepath string) *LogFile
func (lf *LogFile) Write(b []byte) (n int, err error)
Opens, writes, and closes the file. not efficent, but safe