Documentation ¶
Overview ¶
Copyright © 2020 Marvin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func DPanic(msg string, fields ...zap.Field)
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func GetGormLogger(logLevel string, slowThreshold uint64) zapgorm2.Logger
- func GetRootLogger() *zap.Logger
- func Info(msg string, fields ...zap.Field)
- func NewCronLogger(l *zap.Logger) cron.Logger
- func NewRootLogger(cfg *Config)
- func Panic(msg string, fields ...zap.Field)
- func Sync() error
- func Warn(msg string, fields ...zap.Field)
- func WithField(key string, value string)
- type Config
- type CronLogger
Constants ¶
const (
LogTimeFmt = "2006-01-02 15:04:05.000"
)
Variables ¶
This section is empty.
Functions ¶
func GetRootLogger ¶
func NewCronLogger ¶
func NewRootLogger ¶
func NewRootLogger(cfg *Config)
Types ¶
type CronLogger ¶
func (*CronLogger) Error ¶
func (cl *CronLogger) Error(err error, msg string, keysAndValues ...interface{})
func (*CronLogger) Info ¶
func (cl *CronLogger) Info(msg string, keysAndValues ...interface{})
func (*CronLogger) Printf ¶
func (cl *CronLogger) Printf(string, ...interface{})