sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

Option to control log file destination #1251

Closed jbodart-argenx closed 2 years ago

jbodart-argenx commented 2 years ago

The log file generated by sasjs run myprogram.sas is currently difficult to predict (e.g. sasjs-run-20220912073659.log). In order to automatically display or post-process (e.g. search for specific messages such as errors and warnings) the log file it would be necessary to be able to pre-specify the log file destination.

I think this might be implemented as one or more of the following:

allanbowe commented 2 years ago

Thanks for the feedback, indeed we should support the -l / --log option for sasjs run. We will also update the sasjs help documentation for the new option.