Logging

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Logging

Hugo <Nabble>
How can we print log statements from the luan code?
Example:
Log.info('a')
Log.debug('b')
Log.error('c')
Log.warn('d')
I am not sure how this would work with luanhost, but I need this to debug my code.
Reply | Threaded
Open this post in threaded view
|

Re: Logging

fschmidt
Administrator
local logger = Logging.logger "test"

logger.info('a')
logger.debug('b')
logger.error('c')
logger.warn('d')
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Logging

Hugo <Nabble>
Thanks, closing thread.