test.lua
changeset 23 13f03e604c8a
parent 22 1a1bc121fe90
child 29 e86ee1f4227d
equal deleted inserted replaced
22:1a1bc121fe90 23:13f03e604c8a
       
     1 --[[ Copyright 2009 Myhailo Danylenko
       
     2 
       
     3 This program is free software: you can redistribute it and/or modify
       
     4 it under the terms of the GNU General Public License as published by
       
     5 the Free Software Foundation, either version 2 of the License, or
       
     6 (at your option) any later version.
       
     7 
       
     8 This program is distributed in the hope that it will be useful,
       
     9 but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    11 GNU General Public License for more details.
       
    12 
       
    13 You should have received a copy of the GNU General Public License
       
    14 along with this program.  If not, see <http://www.gnu.org/licenses/>. ]]
       
    15 
       
    16 -- Note, this requires glib module, that is not released yet
       
    17 -- (and, probably, will not be released ever), thus, this
       
    18 -- code is provided only as example.
     1 
    19 
     2 require 'glib'
    20 require 'glib'
     3 local lm = require 'lm'
    21 local lm = require 'lm'
     4 
    22 
     5 g.log.handler (
    23 g.log.handler (