ilog_impl.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package svcfw
  2. import (
  3. "git.swzry.com/zry/GoHiedaLogger/hiedalog"
  4. )
  5. func (f *AppFramework) BLFatal(module string, d ...interface{}) {
  6. f.logger.LogPrint(module, hiedalog.DLN_FATAL, d...)
  7. f.Stop()
  8. }
  9. func (f *AppFramework) BLFatalF(module string, format string, d ...interface{}) {
  10. f.logger.LogPrintf(module, hiedalog.DLN_FATAL, format, d...)
  11. f.Stop()
  12. }
  13. func (f *AppFramework) BLFatalC(module string, data map[string]string) {
  14. f.logger.LogComplex(module, hiedalog.DLN_FATAL, data)
  15. f.Stop()
  16. }
  17. func (f *AppFramework) BLPanic(module string, d ...interface{}) {
  18. f.logger.LogPrint(module, hiedalog.DLN_PANIC, d...)
  19. panic("App Panic")
  20. }
  21. func (f *AppFramework) BLPanicF(module string, format string, d ...interface{}) {
  22. f.logger.LogPrintf(module, hiedalog.DLN_PANIC, format, d...)
  23. panic("App Panic")
  24. }
  25. func (f *AppFramework) BLPanicC(module string, data map[string]string) {
  26. f.logger.LogComplex(module, hiedalog.DLN_PANIC, data)
  27. panic("App Panic")
  28. }
  29. func (f *AppFramework) BLError(module string, d ...interface{}) {
  30. f.logger.LogPrint(module, hiedalog.DLN_ERROR, d...)
  31. }
  32. func (f *AppFramework) BLErrorF(module string, format string, d ...interface{}) {
  33. f.logger.LogPrintf(module, hiedalog.DLN_ERROR, format, d...)
  34. }
  35. func (f *AppFramework) BLErrorC(module string, data map[string]string) {
  36. f.logger.LogComplex(module, hiedalog.DLN_ERROR, data)
  37. }
  38. func (f *AppFramework) BLWarn(module string, d ...interface{}) {
  39. f.logger.LogPrint(module, hiedalog.DLN_WARN, d...)
  40. }
  41. func (f *AppFramework) BLWarnF(module string, format string, d ...interface{}) {
  42. f.logger.LogPrintf(module, hiedalog.DLN_WARN, format, d...)
  43. }
  44. func (f *AppFramework) BLWarnC(module string, data map[string]string) {
  45. f.logger.LogComplex(module, hiedalog.DLN_WARN, data)
  46. }
  47. func (f *AppFramework) BLInfo(module string, d ...interface{}) {
  48. f.logger.LogPrint(module, hiedalog.DLN_INFO, d...)
  49. }
  50. func (f *AppFramework) BLInfoF(module string, format string, d ...interface{}) {
  51. f.logger.LogPrintf(module, hiedalog.DLN_INFO, format, d...)
  52. }
  53. func (f *AppFramework) BLInfoC(module string, data map[string]string) {
  54. f.logger.LogComplex(module, hiedalog.DLN_INFO, data)
  55. }
  56. func (f *AppFramework) BLVerbose(module string, d ...interface{}) {
  57. f.logger.LogPrint(module, hiedalog.DLN_VERBOSE, d...)
  58. }
  59. func (f *AppFramework) BLVerboseF(module string, format string, d ...interface{}) {
  60. f.logger.LogPrintf(module, hiedalog.DLN_VERBOSE, format, d...)
  61. }
  62. func (f *AppFramework) BLVerboseC(module string, data map[string]string) {
  63. f.logger.LogComplex(module, hiedalog.DLN_VERBOSE, data)
  64. }
  65. func (f *AppFramework) BLDebug(module string, d ...interface{}) {
  66. f.logger.LogPrint(module, hiedalog.DLN_DEBUG, d...)
  67. }
  68. func (f *AppFramework) BLDebugF(module string, format string, d ...interface{}) {
  69. f.logger.LogPrintf(module, hiedalog.DLN_DEBUG, format, d...)
  70. }
  71. func (f *AppFramework) BLDebugC(module string, data map[string]string) {
  72. f.logger.LogComplex(module, hiedalog.DLN_DEBUG, data)
  73. }