Redirect logging

User: "timur"
New Altair Community Member
Updated by Jocelyn
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!

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "simon_knoll"
    New Altair Community Member
    hi,
    i deactivated logging with

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

    regards simon
    User: "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