There is no equivalent for cpost. However, if you put this code in a
at the top of your class you can use System.out.println and
System.err.println to log to the console.
By default these are redirected to the max console. In essence, this
code undoes that.