Пример #1
0
// AddXormDBAppender
func AddXormDBAppender(driver, spec string, table string, lines []string) {

	a, err := NewXormDBAppender(driver, spec, table)

	if err != nil {
		fmt.Printf("Error db appender: %v\n", err)
		return
	}
	wlog.AddAppender(a, lines)
}
Пример #2
0
// AddAppender
func AddAppender(appender logapi.Appender, lines []string) {
	wlog.AddAppender(appender, lines)
}