logrx icon indicating copy to clipboard operation
logrx copied to clipboard

Feature Request: Would it be possible to add a function to redirect the log to another log file from inside of one of the R script ?

Open weistg0105 opened this issue 2 years ago • 2 comments

Feature Idea

In SAS it is possible to redirect the log at any possible position in the SAS program. So if I have a program which calls a lot of TFL generating macros one after the other I can redirect the log as the first action before each macro call. In such a way I can generate a log for each TFL, which simplifies searching for errors. Would it be possible to implement a functionality like this in logrx as well ? Or what would be a possible workaround if I don't want to write one program for each TFL ?

Relevant Input

Maybe like this ?

log_redirect(path=, file=) MakeTFL(...) # generates one TFL log_redirect(path=, file=) MakeTFL(...) # generates one TFL log_redirect(path=, file=) MakeTFL(...) # generates one TFL

and so on

Relevant Output

A new log file should be generated after redirection.

Reproducible Example/Pseudo Code

No response

weistg0105 avatar May 16 '23 07:05 weistg0105

Thank you for your Feature Request @GerdWeist! We are regrouping on Monday to discuss future enhancements and roadmap. This will be on our list.

bms63 avatar Jun 03 '23 15:06 bms63