Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

logger.go 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* ----------------------------------------------------------------------
  2. * ______ ___ __
  3. * / ____/___ / | ____ __ ___ __/ /_ ___ ________
  4. * / / __/ __ \/ /| | / __ \/ / / / | /| / / __ \/ _ \/ ___/ _ \
  5. * / /_/ / /_/ / ___ |/ / / / /_/ /| |/ |/ / / / / __/ / / __/
  6. * \____/\____/_/ |_/_/ /_/\__. / |__/|__/_/ /_/\___/_/ \___/
  7. * /____/
  8. *
  9. * (C) Copyright 2015 GoAnywhere (http://goanywhere.io).
  10. * ----------------------------------------------------------------------
  11. * Licensed under the Apache License, Version 2.0 (the "License");
  12. * you may not use this file except in compliance with the License.
  13. * You may obtain a copy of the License at
  14. *
  15. * http://www.apache.org/licenses/LICENSE-2.0
  16. *
  17. * Unless required by applicable law or agreed to in writing, software
  18. * distributed under the License is distributed on an "AS IS" BASIS,
  19. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. * See the License for the specific language governing permissions and
  21. * limitations under the License.
  22. * ----------------------------------------------------------------------*/
  23. package rex
  24. import "github.com/Sirupsen/logrus"
  25. func Info(message string) {
  26. logrus.Info(message)
  27. }
  28. func Infof(format string, args ...interface{}) {
  29. logrus.Infof(format, args...)
  30. }
  31. func Debug(message string) {
  32. logrus.Debug(message)
  33. }
  34. func Debugf(format string, args ...interface{}) {
  35. logrus.Debugf(format, args...)
  36. }
  37. func Warn(message string) {
  38. logrus.Warn(message)
  39. }
  40. func Warnf(format string, args ...interface{}) {
  41. logrus.Warnf(format, args...)
  42. }
  43. func Error(message string) {
  44. logrus.Error(message)
  45. }
  46. func Errorf(format string, args ...interface{}) {
  47. logrus.Errorf(format, args...)
  48. }
  49. func Fatal(message string) {
  50. logrus.Fatal(message)
  51. }
  52. func Fatalf(format string, args ...interface{}) {
  53. logrus.Fatalf(format, args...)
  54. }
  55. func Panic(message string) {
  56. logrus.Panic(message)
  57. }
  58. func Panicf(format string, args ...interface{}) {
  59. logrus.Panicf(format, args...)
  60. }