1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-17 16:23:32 +00:00
Beego/vendor/github.com/casbin/casbin/log/logger.go

31 lines
1.0 KiB
Go
Raw Normal View History

2018-11-22 05:08:39 +00:00
// Copyright 2018 The casbin Authors. All Rights Reserved.
2018-11-09 04:37:28 +00:00
//
// 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.
2018-11-22 05:08:39 +00:00
package log
2018-11-09 04:37:28 +00:00
2018-11-22 05:08:39 +00:00
// Logger is the logging interface implementation.
type Logger interface {
//EnableLog controls whether print the message.
EnableLog(bool)
2018-11-09 04:37:28 +00:00
2018-11-22 05:08:39 +00:00
//IsEnabled returns if logger is enabled.
IsEnabled() bool
2018-11-09 04:37:28 +00:00
2018-11-22 05:08:39 +00:00
//Print formats using the default formats for its operands and logs the message.
Print(...interface{})
2018-11-09 04:37:28 +00:00
2018-11-22 05:08:39 +00:00
//Printf formats according to a format specifier and logs the message.
Printf(string, ...interface{})
2018-11-09 04:37:28 +00:00
}