How to get all console output?

Discussion in 'Plugin Development' started by Paxination, Jan 29, 2014.

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

    Paxination

    I need to copy console output to several connections.

    I fount this

    https://forums.bukkit.org/threads/redirect-console-output-to-a-jtextarea.44265/

    And it sorta works. It doesnt redirect ALL output from console. Some things are still missing. Which didnt make sense to me as I figured System.out would be ALL output.

    Then I fount this...

    https://forums.bukkit.org/threads/how-do-i-get-all-instances-of-console-output.180247/

    And withWolvereness suggestion in that thread, I made a handler and added it to all 3 of the loggers.

    PHP:
            getLogger().addHandler(myloghandler);
            
    getLogger().getGlobal().addHandler(myloghandler);
            
    getLogger().getLogger("minecraft").addHandler(myloghandler);
    Isnt working either, in the publish() method I send record.getMessage() to a method in my class that sends it out via

    out.println(msg);

    Doesnt show anything from the loggers at all.

    I am trying to create my own version of Rcon. Rcon is too limited. I only see output when I issue a command. I want to be able to see all output as if I am connected to my server's desktop.

    Any ideas what I am doing wrong?
     
  2. Offline

    WhatAaCow

    Bump. Does anybody have a solution?
     
Thread Status:
Not open for further replies.

Share This Page