Jump to content

logging to file in osbot


Recommended Posts

Posted (edited)

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);

Edited by Czar
Posted

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
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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