mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
8 lines
188 B
Lua
8 lines
188 B
Lua
local skynet = require "skynet"
|
|
|
|
skynet.dispatch(function(msg, sz , session , from)
|
|
local message = skynet.tostring(msg,sz)
|
|
print("[GLOBALLOG]", from,message)
|
|
end)
|
|
|
|
skynet.register "LOG" |