//NewFileLog creates a new FileLog from a given path
NewFileLog creates a new FileLog from a given path
// NewFileLog creates a new FileLog from a given path
func NewFileLog(path string) (*FileLog, error) {
	log := FileLog{
		BaseLog: NewBaseLog(LEVEL_PRODUCTION),
		path:    path,
	}
	go log.listen()
	err := <-log.err
	if err != nil {
		return nil, fmt.Errorf("unable to start file log: %v", err)
	}
	return &log, nil
}
func NewFileLog ( path string ) ( * FileLog , error ) { log := FileLog { BaseLog : NewBaseLog ( LEVEL_PRODUCTION ) , path : path , } go log . listen ( ) err := <- log . err if err != nil { return nil , fmt . Errorf ( " " , err ) } return & log , nil }
NewFileLog creates a new FileLog from a given path
NewFileLog creates a new FileLog from a given path