PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/logger.ml

http://github.com/hhughes/ocaml-frui
OCaml | 8 lines | 6 code | 2 blank | 0 comment | 0 complexity | 3787ee5081b8243d2443833637ce00d2 MD5 | raw file
1open Ocamljs.Inline
2
3class logger =
4object
5  method log (msg : string) =  ignore(<:exp< console.log($msg$) >>)
6end
7
8let debug = (new logger)#log