You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
642 B
23 lines
642 B
-------------------------------------------------------------------------------
|
|
-- Prints logging information to console
|
|
--
|
|
-- @author Thiago Costa Ponte (thiago@ideais.com.br)
|
|
--
|
|
-- @copyright 2004-2011 Kepler Project
|
|
--
|
|
-------------------------------------------------------------------------------
|
|
|
|
require"logging"
|
|
|
|
function logging.console(logPattern)
|
|
|
|
return logging.new( function(self, level, message)
|
|
io.stdout:write(logging.prepareLogMsg(logPattern, os.date(), level, message))
|
|
return true
|
|
end
|
|
)
|
|
end
|
|
|
|
return logging.console
|
|
|