Skip to content

Instantly share code, notes, and snippets.

@cowboy
Last active December 19, 2015 15:29
Show Gist options
  • Save cowboy/5976681 to your computer and use it in GitHub Desktop.
Save cowboy/5976681 to your computer and use it in GitHub Desktop.
logging progress idea

debug

super-chatty. helpful for debugging, and probably nothing else

debug "this is a debugging message"

progress

progress.start "Doing something"
progress.update "1"
progress.update "2"
progress.update "3"
progress.update "4"
progress.update "5"
progress.update "6"
progress.update "7"
progress.update "8"
progress.update "9"
progress.update "10"
progress.done "OK"

Could log like this:

  • Doing something..........OK

Or could log more verbosely like this, depending on the logger:

  • Doing something
  • Doing something (1)
  • Doing something (2)
  • Doing something (3)
  • Doing something (4)
  • Doing something (5)
  • Doing something (6)
  • Doing something (7)
  • Doing something (8)
  • Doing something (9)
  • Doing something (10)
  • Doing something OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment