Jump to content

logging to file in osbot


rudedude420

Recommended Posts

You can override OSBot's logger just as you can do so for paint, onLoop, onMessage etc, just make your own

 

@Override

public void log(String message) {

//save message to file

}

 

This is what does the logging: getBot().getLogger().debug(message);

 

 

 

Should just be able to call super() and then add the additional file output afterwards (inside of the overridden log method).

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...