/
githubmirror
/
ignition
Обзор
Документация
Войти
/
githubmirror
/
ignition
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/log/stdout.go
31 строка
1 KB
Alex Crawford
*: rename src package to internal
01 апр 2016, 03:42
01 апр 2016, 03:42
4a1e835
Код
Авторство
О чём код?
// Copyright 2015 CoreOS, 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 log import ( "fmt" ) type Stdout struct{} func (Stdout) Emerg(msg string) error { fmt.Println("EMERGENCY:", msg); return nil } func (Stdout) Alert(msg string) error { fmt.Println("ALERT :", msg); return nil } func (Stdout) Crit(msg string) error { fmt.Println("CRITICAL :", msg); return nil } func (Stdout) Err(msg string) error { fmt.Println("ERROR :", msg); return nil } func (Stdout) Warning(msg string) error { fmt.Println("WARNING :", msg); return nil } func (Stdout) Notice(msg string) error { fmt.Println("NOTICE :", msg); return nil } func (Stdout) Info(msg string) error { fmt.Println("INFO :", msg); return nil } func (Stdout) Debug(msg string) error { fmt.Println("DEBUG :", msg); return nil } func (Stdout) Close() error { return nil }