obvious icon indicating copy to clipboard operation
obvious copied to clipboard

Developer Tools

Open sergeyklay opened this issue 10 years ago • 1 comments

Hi!

I propose to include some logging library eg. LuaLogging. Thus we can set the flag and log file globally, for example

DEBUG = true -- false
logger = logging.file("/var/log/obvious-%s.log", "%Y-%m-%d")

-- And use this in future as needed

local pipe = popen('sensors -u', 'r')
if not pipe then
   if DEBUG then logger:debug("Can't open pipe")
   return
end

sergeyklay avatar Nov 03 '14 22:11 sergeyklay

I think this is a good idea, but I'm reluctant to depend too heavily on external libraries like LuaLogging. As long as it is included as an optional dependency, I'm ok with it!

hoelzro avatar Nov 04 '14 00:11 hoelzro