Logger
#10
As for the display part of that function, it's okay for now, but not good for larger projects, you should get into the habit of using table.concat to concatenate multiple strings (100+ strings) together. Best code:
local out = {}
local n = 1
for row in LOG_DB:nrows(...) do
  out[n] = row.date .. " | " .. row.login .. " | " .. row.message
  n = n + 1
end
return true, table.concat(out, "\n")
Reply
Thanks given by: DrMasik


Messages In This Thread
Logger - by DrMasik - 08-18-2015, 05:59 AM
RE: Logger - by NiLSPACE - 08-18-2015, 06:15 AM
RE: Logger - by DrMasik - 08-18-2015, 06:18 AM
RE: Logger - by xoft - 08-18-2015, 04:26 PM
RE: Logger - by DrMasik - 08-19-2015, 04:58 AM
RE: Logger - by DrMasik - 08-19-2015, 07:31 AM
RE: Logger - by xoft - 08-19-2015, 04:32 PM
RE: Logger - by DrMasik - 08-19-2015, 08:20 PM
RE: Logger - by xoft - 08-20-2015, 01:01 AM
RE: Logger - by DrMasik - 08-20-2015, 01:56 AM
RE: Logger - by xoft - 08-20-2015, 01:04 AM
RE: Logger - by DrMasik - 08-20-2015, 02:46 AM
RE: Logger - by DrMasik - 08-20-2015, 05:59 PM
RE: Logger - by NiLSPACE - 08-20-2015, 06:12 PM
RE: Logger - by DrMasik - 08-20-2015, 06:23 PM
RE: Logger - by NiLSPACE - 08-20-2015, 06:26 PM
RE: Logger - by DrMasik - 08-20-2015, 06:36 PM
RE: Logger - by NiLSPACE - 08-20-2015, 06:47 PM
RE: Logger - by DrMasik - 08-20-2015, 06:51 PM
RE: Logger - by NiLSPACE - 08-20-2015, 07:18 PM
RE: Logger - by DrMasik - 08-21-2015, 05:57 AM



Users browsing this thread: 5 Guest(s)