I am dealing with a commerical Java API that exposes only the following logging configuration:
cplex.setOut(OutputStream arg0);
I would like to have logging to two streams: a file and the console.
Is it possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Write your own OutputStream implementation which delegates calls to the
writemethods to two wrapped OutputStreams, one for the console and one for the file.