Intercept console messages?

Discussion in 'Plugin Development' started by jsutaria, May 30, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    jsutaria

    I am making a plugin that basically makes slack a console. I was wondering how to get all messages sent to console and send them to another source. I.e. when I get an error that a plugin had, it sends it to a source. I already got player messages/commands sent to the slack, I just need the console messages (onEnable of plugins, onDisable), 0r
    30.05 07:47:32 [Server] INFO Giving 64 of diamond to player. etc etc. is this possible?
     
  2. Offline

    EmeraldRailsMC

    onEnable/onDisable messages are sent when no players can be on. Try joining a test server before the plugins are enabled.
     
  3. Offline

    I Al Istannen

    @EmeraldRailsMC
    I think he wants to suppress the messages from showing up in the console log, not in the chat.


    @jsutaria
    I think there was a Root Logger for the console, you could apply a message filter though. I have no idea how to get it right now, no time to test and I don't know if it is still the same. But maybe worth a shot.
     
Thread Status:
Not open for further replies.

Share This Page