mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
17 lines
352 B
Go
17 lines
352 B
Go
package log
|
|
|
|
import "fmt"
|
|
|
|
func GetLogDriver(logDriverType string) Driver {
|
|
switch logDriverType {
|
|
case DriverTypeFile:
|
|
return GetFileLogDriver()
|
|
case DriverTypeMongo:
|
|
panic("mongo driver not implemented")
|
|
case DriverTypeEs:
|
|
panic("es driver not implemented")
|
|
default:
|
|
panic(fmt.Sprintf("invalid log driver type: %s", logDriverType))
|
|
}
|
|
}
|