diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-11 06:05:00 -0700 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-11 06:05:00 -0700 |
commit | 3548b2bd61510b5688bcf8aaad64662edd92f860 (patch) | |
tree | 18540b3cf18ee8989d306837ba0f1c152d3b0d9c /luaotfload-override.lua | |
parent | 9d88759309b030a12bdb7850d9d4fb410446c762 (diff) | |
parent | 0004b213f99a77411c03811e3324c9a1e934e31a (diff) | |
download | luaotfload-3548b2bd61510b5688bcf8aaad64662edd92f860.tar.gz |
Merge pull request #63 from phi-gamma/master
extend luaotfload-tool; thanks in doc
Diffstat (limited to 'luaotfload-override.lua')
-rw-r--r-- | luaotfload-override.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/luaotfload-override.lua b/luaotfload-override.lua index f143009..99a6611 100644 --- a/luaotfload-override.lua +++ b/luaotfload-override.lua @@ -30,14 +30,25 @@ We recreate the verbosity levels previously implemented in font-nms: local loglevel = 1 --- default local logout = "log" +--- int -> bool local set_loglevel = function (n) if type(n) == "number" then loglevel = n end + return true end +logs.setloglevel = set_loglevel logs.set_loglevel = set_loglevel logs.set_log_level = set_loglevel --- accomodating lazy typists +--- unit -> int +local get_loglevel = function ( ) + return loglevel +end +logs.getloglevel = get_loglevel +logs.get_loglevel = get_loglevel +logs.get_log_level = get_loglevel + local set_logout = function (s) if s == "stdout" then logout = "term" |