diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-01-11 13:56:21 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-01-11 13:56:21 +0200 |
commit | 0334ce144789afc921f9e652c4a5eca9debb0bd2 (patch) | |
tree | 45f34f90667ff89ab63986234b218bb634d51c82 /otfl-luat-dum.lua | |
parent | bef29eff1da679ba7759ab76acb173eb63c3799a (diff) | |
download | luaotfload-0334ce144789afc921f9e652c4a5eca9debb0bd2.tar.gz |
Defines |logs.report()| and |logs.simple()|
Diffstat (limited to 'otfl-luat-dum.lua')
-rw-r--r-- | otfl-luat-dum.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua index dd5ade7..97ddb31 100644 --- a/otfl-luat-dum.lua +++ b/otfl-luat-dum.lua @@ -64,3 +64,23 @@ function resolvers.findbinfile(name,kind) end return resolvers.find_file(name,(kind and remapper[kind]) or kind) end + +local write_nl, format, name = texio.write_nl, string.format, "luaotfload" + +function logs.report(category,fmt,...) + if fmt then + write_nl(format("%s | %s: %s",name,category,format(fmt,...))) + elseif category then + write_nl(format("%s | %s",name,category)) + else + write_nl(format("%s |",name)) + end +end + +function logs.simple(fmt,...) + if fmt then + write_nl(format("%s | %s",name,format(fmt,...))) + else + write_nl(format("%s |",name)) + end +end |