The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Redirect logging

timurtimur Member Posts: 4 Contributor I
edited November 2018 in Help
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!
Tagged:

Answers

  • simon_knollsimon_knoll Member Posts: 40 Contributor II
    hi,
    i deactivated logging with

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

    regards simon
  • fischerfischer Member Posts: 439 Maven
    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
Sign In or Register to comment.