Last active
October 15, 2018 13:22
-
-
Save arsduo/b6dbdb2f9597112e1b4f98a5cca52e8b to your computer and use it in GitHub Desktop.
Elm Debug.toString Logging Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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