summaryrefslogtreecommitdiff
path: root/src/examples/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <quaker66@gmail.com>2014-04-04 16:37:16 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-10 15:48:46 +0100
commitdcd2b6166b9d4af38e6387d1f2ca482ea8ef7e1f (patch)
tree07a070a0ab479c8e51dd522e78e45a0a1ced1aa3 /src/examples/elua
parent3af66c7f65344c111bf63ae2b28c6f573bcccf0d (diff)
elua: more logging functionality (utility funcs for default domain printing)
Diffstat (limited to 'src/examples/elua')
-rw-r--r--src/examples/elua/elm_test.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/examples/elua/elm_test.lua b/src/examples/elua/elm_test.lua
index 95f362b..df7726f 100644
--- a/src/examples/elua/elm_test.lua
+++ b/src/examples/elua/elm_test.lua
@@ -7,6 +7,16 @@ local win = elm.Window("test", "Hello World")
7dom:log(log.level.INFO, "created window") 7dom:log(log.level.INFO, "created window")
8dom:log(log.level.ERR, "error test!") 8dom:log(log.level.ERR, "error test!")
9 9
10log.log_err("test with default log domain")
11
12local foo = function()
13 for i = 1, 4 do
14 dom:log(log.level.ERR, "testing: " .. i)
15 end
16end
17
18foo()
19
10win:smart_callback_add("delete,request", function() 20win:smart_callback_add("delete,request", function()
11 elm.exit() 21 elm.exit()
12end) 22end)