fix breaks
This commit is contained in:
@@ -174,6 +174,6 @@ func SetPrefix(p string) {
|
||||
}
|
||||
|
||||
// Set service name
|
||||
func Name(name string) {
|
||||
func SetName(name string) {
|
||||
prefix = fmt.Sprintf("[%s]", name)
|
||||
}
|
||||
|
@@ -7,10 +7,19 @@ type Option func(*Options)
|
||||
|
||||
// Options are logger options
|
||||
type Options struct {
|
||||
// Name of the log
|
||||
Name string
|
||||
// Size is the size of ring buffer
|
||||
Size int
|
||||
}
|
||||
|
||||
// Name of the log
|
||||
func Name(n string) Option {
|
||||
return func(o *Options) {
|
||||
o.Name = n
|
||||
}
|
||||
}
|
||||
|
||||
// Size sets the size of the ring buffer
|
||||
func Size(s int) Option {
|
||||
return func(o *Options) {
|
||||
|
Reference in New Issue
Block a user