summaryrefslogtreecommitdiff
path: root/luaotfload-log.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-02-09 16:54:13 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-02-09 16:54:13 +0100
commit2c6feb979da6435bb9f6636a46be576f688f7f78 (patch)
tree9a54c17e9a1730aeb65453f27f010c4f8d57171f /luaotfload-log.lua
parente069690a7f747f7b17baed6974168192857eb485 (diff)
downloadluaotfload-2c6feb979da6435bb9f6636a46be576f688f7f78.tar.gz
[log,*] s/log.names_report()/logs.report()/g
Closing #169 Signed-off-by: Philipp Gesang <phg42.2a@gmail.com>
Diffstat (limited to 'luaotfload-log.lua')
-rw-r--r--luaotfload-log.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/luaotfload-log.lua b/luaotfload-log.lua
index 080550a..5698c84 100644
--- a/luaotfload-log.lua
+++ b/luaotfload-log.lua
@@ -200,7 +200,7 @@ local level_ids = { common = 1, loading = 2, search = 3 }
--[[doc--
- The names_report logger is used more or less all over luaotfload.
+ The report() logger is used more or less all over luaotfload.
Its requirements are twofold:
1) Provide two logging channels, the terminal and the log file;
@@ -224,7 +224,7 @@ local level_ids = { common = 1, loading = 2, search = 3 }
--doc]]--
-local names_report = function (mode, lvl, ...)
+local report = function (mode, lvl, ...)
if type(lvl) == "string" then
lvl = level_ids[lvl]
end
@@ -242,7 +242,7 @@ local names_report = function (mode, lvl, ...)
end
end
-log.names_report = names_report
+log.report = report
--[[doc--
@@ -301,7 +301,7 @@ local status_start = function (low, high)
or os.getenv "TERM" == "dumb"
then
status_writer = function (mode, ...)
- names_report (mode, high, ...)
+ report (mode, high, ...)
end
return
end
@@ -310,7 +310,7 @@ local status_start = function (low, high)
status_writer = status_logger
else
status_writer = function (mode, ...)
- names_report (mode, high, ...)
+ report (mode, high, ...)
end
end
end
@@ -348,7 +348,7 @@ log.names_status_stop = status_stop
--doc]]--
local texioreporter = function (message)
- names_report("log", 2, message)
+ report ("log", 2, message)
end
texio.reporter = texioreporter
@@ -386,10 +386,10 @@ if fonts then --- need to be running TeX
if k == "unicodes" then
local glyphlist = resolvers.findfile"luaotfload-glyphlist.lua"
if glyphlist then
- names_report("log", 1, "load", "loading the Adobe glyph list")
+ report ("log", 1, "load", "loading the Adobe glyph list")
else
glyphlist = resolvers.findfile"font-age.lua"
- names_report("both", 0, "load",
+ report ("both", 0, "load",
"loading the extended glyph list from ConTeXt")
end
local unicodes = dofile(glyphlist)