Redirect logging

timur
timur New Altair Community Member
edited November 5 in Community Q&A
Hi all,

I am integrating RapidMiner in my application and I want to redirect RapidMiner logs to a file. I have found the way to redirect the output of a single process to a file by setting ProcessRootOperator.PARAMETER_LOGFILE, however I can't find how to redirect the actual RM logs (e.g. ones that you get when initializing RM). Documentation says to use LogService.initGlobalLogging method, however there is no such method in my RM distribution (I got the head version of RM 5 from the subversion).

As a sidenote: it seems to me that exception logs are redirected to System.err anyways, even if ProcessRootOperator.PARAMETER_LOGFILE is set. Is there any way to put it in the process log file so that I know which process have thrown this exception in case of several processes?

I will appreciate any help on these problems. Thanks!

Answers

  • simon_knoll
    simon_knoll New Altair Community Member
    hi,
    i deactivated logging with

    LogService.getRoot().setLevel(Level.OFF);
    maybe that helps you a bit.

    regards simon
  • fischer
    fischer New Altair Community Member
    Hi,

    RapidMiner uses Java's regular java.util.logging API. E.g., LogService.getRoot() will deliver the root Logger. com.rapidminer.Process has its individual Logger used while executing the process. You can register whatever Handlers you like with these loggers. Sun has documentation on this.

    Cheers,
    Simon