Skip to content

Instantly share code, notes, and snippets.

@arsduo
Last active October 15, 2018 13:22
Show Gist options
  • Save arsduo/b6dbdb2f9597112e1b4f98a5cca52e8b to your computer and use it in GitHub Desktop.
Save arsduo/b6dbdb2f9597112e1b4f98a5cca52e8b to your computer and use it in GitHub Desktop.
Elm Debug.toString Logging Example
type Msg
= PlayVideo VideoId
| VideoPlayAdvanced { currentSecond : Int, totalLength : Int }
| ReadTextAloud
| Login AuthToken UserInformation
sendLogMessage : Msg -> Cmd Msg
sendLogMessage msg =
LoggingApi.sendLogEvent (Debug.toString msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment