Changeset

127:8f831f259cea

libs.logger: Use io.write instead of print
author Matthew Wild <mwild1@gmail.com>
date Mon, 13 Sep 2010 14:10:28 +0100
parents 126:fa3ddadb8364
children 128:720b9ccd7ea4
files libs/logger.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libs/logger.lua	Mon Sep 13 14:08:41 2010 +0100
+++ b/libs/logger.lua	Mon Sep 13 14:10:28 2010 +0100
@@ -1,5 +1,5 @@
-local print = print
 local select, tostring = select, tostring;
+local io_write = io.write;
 module "logger"
 
 local function format(format, ...)
@@ -15,7 +15,7 @@
 
 function init(name)
 	return function (level, message, ...)
-		print(level, format(message, ...));
+		io_write(level, "\t", format(message, ...), "\n");
 	end
 end