globallog.lua 275 B

1234567891011
  1. local skynet = require "skynet"
  2. require "skynet.manager" -- import skynet.register
  3. skynet.start(function()
  4. skynet.dispatch("lua", function(session, address, ...)
  5. print("[GLOBALLOG]", skynet.address(address), ...)
  6. end)
  7. skynet.register ".log"
  8. skynet.register "LOG"
  9. end)