Add part5

This commit is contained in:
Richard Feldman
2018-08-11 14:42:13 -04:00
parent 032194c6be
commit 42f4182e1b
55 changed files with 5997 additions and 0 deletions

20
intro/part5/src/Log.elm Normal file
View File

@@ -0,0 +1,20 @@
module Log exposing (error)
{-| This is a placeholder API for how we might do logging through
some service like <http://rollbar.com> (which is what we use at work).
Whenever you see Log.error used in this code base, it means
"Something unexpected happened. This is where we would log an
error to our server with some diagnostic info so we could investigate
what happened later."
(Since this is outside the scope of the RealWorld spec, and is only
a placeholder anyway, I didn't bother making this function accept actual
diagnostic info, authentication tokens, etc.)
-}
error : Cmd msg
error =
Cmd.none