Bungee - Proxy BungeeTrack Logger 0.5

Log Player UUID, Player Name Player IP, Connection Time, and Connection dnsname

  1. fuzzy_bot

    Patron

    fuzzy_bot submitted a new resource:

    BungeeTrack Logger (version 0.2) - Log Player IP, Connection Time, and Connection dnsname

    Read more about this resource...
     
  2. This is something i really need... but for some strange reason, the proxy works fine says BungeeTrack is enabled, but yet no file 'BungeeTrack.log' has been created with the logs... am I missing something?
     
  3. fuzzy_bot

    Patron

    the file should be BungeeTrack.txt
     
  4. PhanaticD

    Patron

    update pls :)
     
  5. fuzzy_bot

    Patron

    What exactly needs updating?
     
  6. PhanaticD

    Patron

    it doesn't work on latest version of bungee, some error class not found, it goes by too fast and bungee logs are useless as it only keeps 100 or so lines
     
  7. LiLChris

    LiLChris Retired Moderator
    Retired

    That reminds me is there a way to turn off logging in bungee, its rather pointless. :mad:
     
  8. fuzzy_bot

    Patron

    I'll update it this weekend to work with the 1.5.2 bungeecord build
     
  9. Can I has source please? :D
     
  10. fuzzy_bot

    Patron

    Code (Text):
        @Subscribe
        public void onLoginEvent(LoginEvent event) {
        getLogger().log(Level.INFO, "got login event");
        try {
     
            DateFormat df = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss");
     
            Date today = Calendar.getInstance().getTime();
     
            String reportDate = df.format(today);
     
            PrintWriter out = new PrintWriter(new BufferedWriter(
                new FileWriter("BungeeTrack.txt", true)));
            out.println(event.getConnection().getAddress().getAddress()
                .toString()
                + " | "
                + event.getConnection().getName()
                + " | "
                + event.getConnection().getVirtualHost().getHostString()
                + " | " + reportDate);
            out.close();
     
        } catch (IOException e) {
            e.printStackTrace();
        }
        }
     
  11. I was expecting a github repo.
     
    • Funny Funny x 1
  12. fuzzy_bot

    Patron

    • Friendly Friendly x 1
  13. #13 LaxWasHere, May 2, 2013
    Last edited: May 8, 2013
  14. PhanaticD

    Patron

    update please? Im too lazy to compile myself D:
     
  15. fuzzy_bot

    Patron

  16. fuzzy_bot

    Patron

  17. fuzzy_bot

    Patron

    • Friendly Friendly x 1
  18. externo6

    Supporter

    Hello, bungee warns on this with newer versions:
    Code (Text):
    16:16:19 [WARNING] Listener [email protected] has registered using depreceated subscribe annotation! Please advice author to update to @EventHandler. As a server owner you may safely ignore this.
     
    Just letting you know :)
     
    #18 externo6, May 26, 2013
    Last edited: May 26, 2013
  19. http://ci.poweredbyhate.net/job/BungeeTrack/
     
    • Winner Winner x 1
  20. externo6

    Supporter