top

Package logrus is a structured logger for Go, completely API compatible with the standard library logger.

The simplest way to use Logrus is simply the package-level exported logger:

package main

import (
  log "github.com/Sirupsen/logrus"
)

func main() {
  log.WithFields(log.Fields{
    "animal": "walrus",
    "number": 1,
    "size":   10,
  }).Info("A walrus appears")
}

Output:

time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10

For a full guide visit https://github.com/Sirupsen/logrus

Imported by 180 package(s)

  1. github.com/6f7262/kopime
  2. github.com/BigRoom/vision
  3. github.com/BigRoom/zombies
  4. github.com/ChaosCloud/Nut
  5. github.com/ChaosCloud/Nut/commands
  6. github.com/ChaosCloud/Nut/container
  7. github.com/CiscoCloud/mesos-consul
  8. github.com/CiscoCloud/mesos-consul/consul
  9. github.com/CiscoCloud/mesos-consul/mesos
  10. github.com/Kemonozume/nzbcrawler
  11. github.com/Kemonozume/nzbcrawler/crawler
  12. github.com/Kemonozume/nzbcrawler/crawler/ghost
  13. github.com/Kemonozume/nzbcrawler/crawler/town
  14. github.com/Kemonozume/nzbcrawler/runner
  15. github.com/Kemonozume/nzbcrawler/util
  16. github.com/Kemonozume/nzbcrawler/web
  17. github.com/LeoAdamek/callShibe
  18. github.com/LeoAdamek/csapi
  19. github.com/LeoAdamek/csapi/db
  20. github.com/LeoAdamek/csapi/middleware
  21. github.com/LeoAdamek/csapi/routes
  22. github.com/LeoAdamek/elastic-rainbow
  23. github.com/LeoAdamek/gobbs
  24. github.com/LeoAdamek/gobbs/server
  25. github.com/PagerDuty/Nut
  26. github.com/PagerDuty/Nut/commands
  27. github.com/PagerDuty/Nut/container
  28. github.com/PagerDuty/nut/commands
  29. github.com/PagerDuty/nut/container
  30. github.com/RedVentures/logspout-cloudwatch
  31. github.com/TheRealBill/gorb
  32. github.com/TheRealBill/gorb/core
  33. github.com/TheRealBill/gorb/gorb-docker-link
  34. github.com/TheRealBill/gorb/pulse
  35. github.com/TwitchScience/aws_utils/logger
  36. github.com/acapps/echo-request
  37. github.com/acapps/zipwhip-smtp
  38. github.com/acapps/zipwhip-smtp/parsing
  39. github.com/acapps/zipwhip-smtp/request
  40. github.com/acapps/zipwhip-smtp/sending
  41. github.com/ailispaw/talk2docker/api
  42. github.com/ailispaw/talk2docker/commands
  43. github.com/ailispaw/xhyvectl/commands
  44. github.com/akamai-open/AkamaiOPEN-edgegrid-golang
  45. github.com/apognu/mesos-consul
  46. github.com/apognu/mesos-consul/consul
  47. github.com/apognu/mesos-consul/mesos
  48. github.com/atongen/mesos-consul
  49. github.com/atongen/mesos-consul/consul
  50. github.com/atongen/mesos-consul/mesos
  51. github.com/bigroom/vision
  52. github.com/bigroom/zombies
  53. github.com/chop-dbhi/data-models-service
  54. github.com/citruspi/Ludicrous-MV-Client
  55. github.com/clawio/service-auth
  56. github.com/clawio/service-localfs-data
  57. github.com/clawio/service-localfs-meta
  58. github.com/clawio/service-localfs-prop
  59. github.com/clawio/service-localfsxattr-data
  60. github.com/clawio/service-localfsxattr-meta
  61. github.com/clawio/service-localfsxattr-mysqlprop
  62. github.com/clawio/service-localfsxattr-redisprop
  63. github.com/clawio/service-ocwebdav
  64. github.com/clawio/service.auth
  65. github.com/clawio/service.localstore.data
  66. github.com/clawio/service.localstore.meta
  67. github.com/clawio/service.localstore.prop
  68. github.com/clawio/service.localstorexattr.prop
  69. github.com/clawio/service.ocwebdav
  70. github.com/codelittinc/incoin.io
  71. github.com/colebrumley/consulctl
  72. github.com/colebrumley/leddlogger
  73. github.com/colebrumley/loom
  74. github.com/colebrumley/lxb
  75. github.com/crewjam/redisproxy
  76. github.com/crewjam/redisproxy/lib
  77. github.com/cytec/gosnatch/gosnatch
  78. github.com/cytec/gosnatch/selfupdate
  79. github.com/dan-compton/goenvy/env
  80. github.com/dan-compton/ladivate
  81. github.com/elodina/mesos-consul
  82. github.com/elodina/mesos-consul/consul
  83. github.com/elodina/mesos-consul/mesos
  84. github.com/getcarina/wiretap
  85. github.com/gosnatch/gosnatch/selfupdate
  86. github.com/hink/ip2asn
  87. github.com/ieee0824/fanlin/cmd/fanlin
  88. github.com/ieee0824/fanlin/lib/handler
  89. github.com/ieee0824/fanlin/lib/logger
  90. github.com/ivan-iver/fly/lib
  91. github.com/jackscan/pepasi-srv
  92. github.com/kevinz/gorb
  93. github.com/kevinz/gorb/core
  94. github.com/kevinz/gorb/gorb-docker-link
  95. github.com/kevinz/gorb/pulse
  96. github.com/lenfree/awsClient
  97. github.com/leoadamek/csapi/db
  98. github.com/leoadamek/csapi/middleware
  99. github.com/leoadamek/csapi/routes
  100. github.com/leoadamek/gobbs/server
  101. github.com/livesense-inc/fanlin/lib/handler
  102. github.com/livesense-inc/fanlin/lib/logger
  103. github.com/marianodominguez/mesos-consul
  104. github.com/marianodominguez/mesos-consul/consul
  105. github.com/marianodominguez/mesos-consul/mesos
  106. github.com/mastercactapus/bitmessage
  107. github.com/mastercactapus/dbus-inspector
  108. github.com/mastercactapus/ddgo
  109. github.com/mastercactapus/gallery
  110. github.com/mastercactapus/geide/geide
  111. github.com/mastercactapus/gopherload/gopherload
  112. github.com/mastercactapus/piusb-switcher
  113. github.com/mastercactapus/steamlink-alt-powermanager
  114. github.com/mastercactapus/watchdns
  115. github.com/mesos-utility/mesos-consul
  116. github.com/mesos-utility/mesos-consul/consul
  117. github.com/mesos-utility/mesos-consul/mesos
  118. github.com/michelangelo13/algernon
  119. github.com/mnzt/logrus/examples/basic
  120. github.com/mnzt/logrus/hooks/test
  121. github.com/moncho/interlock/controller
  122. github.com/mymch/formatter
  123. github.com/njuettner/edgegrid
  124. github.com/nsjph/kestrel
  125. github.com/nutmegdevelopment/mesos-consul
  126. github.com/nutmegdevelopment/mesos-consul/consul
  127. github.com/nutmegdevelopment/mesos-consul/mesos
  128. github.com/paked/mentor-backend
  129. github.com/passync/sync
  130. github.com/pokle/algernon
  131. github.com/pubnative/mesos-consul
  132. github.com/pubnative/mesos-consul/consul
  133. github.com/pubnative/mesos-consul/mesos
  134. github.com/ranjib/Gypsy
  135. github.com/ranjib/Gypsy/api
  136. github.com/ranjib/Gypsy/build
  137. github.com/ranjib/Gypsy/command
  138. github.com/ranjib/Gypsy/dockerfile
  139. github.com/ranjib/Gypsy/server
  140. github.com/ranjib/Gypsy/util
  141. github.com/ranjib/gypsy
  142. github.com/ranjib/gypsy/api
  143. github.com/ranjib/gypsy/build
  144. github.com/ranjib/gypsy/command
  145. github.com/ranjib/gypsy/dockerfile
  146. github.com/ranjib/gypsy/server
  147. github.com/ranjib/gypsy/util
  148. github.com/skippbox/grisou/cmd
  149. github.com/skippbox/grisou/worker
  150. github.com/slantin/np-compiler
  151. github.com/slantin/np-compiler/soundcloud
  152. github.com/soh335/skyperfectv-soccer-first-ical
  153. github.com/synack/gorb
  154. github.com/synack/gorb/core
  155. github.com/synack/gorb/gorb-docker-link
  156. github.com/synack/gorb/pulse
  157. github.com/therealbill/gorb
  158. github.com/therealbill/gorb/core
  159. github.com/therealbill/gorb/gorb-docker-link
  160. github.com/therealbill/gorb/pulse
  161. github.com/trapped/gomaild2
  162. github.com/trapped/gomaild2/db
  163. github.com/trapped/gomaild2/pop3
  164. github.com/trapped/gomaild2/pop3/commands/auth
  165. github.com/trapped/gomaild2/pop3/commands/pass
  166. github.com/trapped/gomaild2/pop3/commands/stls
  167. github.com/trapped/gomaild2/smtp
  168. github.com/trapped/gomaild2/smtp/commands/auth
  169. github.com/trapped/gomaild2/smtp/commands/starttls
  170. github.com/trapped/gomaild2/smtp/transfer
  171. github.com/trapped/gomaild2/structs
  172. github.com/twitchscience/aws_utils/logger
  173. github.com/uriel-fanelli/algernon
  174. github.com/wjh/kopime
  175. github.com/wjh/zif
  176. github.com/wjh/zif/libzif
  177. github.com/wjh/zif/libzif/data
  178. github.com/wjh/zif/zifd
  179. github.com/xyproto/algernon
  180. gopkg.in/xyproto/algernon.v1

Imported only in test by 1 package(s)

  1. github.com/hkparker/go-i2p/lib/crypto

Test imports 1 package(s)

  1. github.com/stretchr/testify/assert