hchunhui / librime-lua

Extending RIME with Lua scripts
BSD 3-Clause "New" or "Revised" License
293 stars 43 forks source link

rime_api_console 下,log.info 失效,鼠须管、小狼毫复现(1.11.2) #347

Open mirtlebot opened 1 month ago

mirtlebot commented 1 month ago

rime_api_console 下,log.info 失效

local function test_log(input)
    print('test_log') 
    log.info('test_log') --> not work
    log.warning('test_log') --> work
    log.error('test_log') --> work
    for _ in input:iter() do
        _.comment = '*'
        yield(_)
    end
end
return test_log

@shewer

Originally posted by @mirtlebot in https://github.com/hchunhui/librime-lua/issues/340#issuecomment-2121584375