Lay the foundations for logging Podman in Go
https://github.com/containers/toolbox/pull/318
This commit is contained in:
parent
c9ae8ad3b6
commit
561fe8b12d
|
|
@ -4,6 +4,7 @@ go_build_wrapper_program = find_program('go-build-wrapper')
|
|||
sources = files(
|
||||
'toolbox.go',
|
||||
'cmd/root.go',
|
||||
'pkg/podman/podman.go',
|
||||
'pkg/shell/shell.go',
|
||||
'pkg/utils/utils.go',
|
||||
'pkg/version/version.go',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright © 2019 – 2020 Red Hat Inc.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package podman
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
var (
|
||||
LogLevel = logrus.ErrorLevel
|
||||
)
|
||||
|
||||
func SetLogLevel(logLevel logrus.Level) {
|
||||
LogLevel = logLevel
|
||||
}
|
||||
Loading…
Reference in New Issue