-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify a custom location for MUJOCO_LOG.TXT
#858
Comments
Sorry for taking more than a year to get back to you 😬 Question: what would be the most natural way to specify the name and directory? Also, wouldn't you want to possibly pass in |
Proposed Solutions for Specifying MuJoCo Log OutputNatural Way to Specify Name and DirectoryThe most natural way to specify a custom name and directory for the MuJoCo log file would be through configuration options passed at initialization. This approach aligns with existing conventions for managing logging and configuration in many libraries. Possible methods:
Example:
Expose a function or parameter in the initialization phase to set the log file: Supporting STDERR and/or STDOUTYes, it would be valuable to allow directing the log output to STDERR or STDOUT. This flexibility is useful for debugging, containerized environments, or scenarios where capturing output via streams is required. For instance: A reserved keyword could indicate these options: |
This makes sense to me. I think in general we try to avoid library-level globals, but this seems justified. |
@yuvaltassa That's alright, better late than never! I think @Nick20500's response above hits the nail on the head. STDOUT and STDERR would be great to have. I would just love to have a way to generate these logs in a user-specified location and with a user-specified name so that they are not overwritten with each new program run. |
Is your feature request related to a problem? Please describe.
The MuJoCo log is always written to the
MUJOCO_LOG.TXT
file in the calling directory, which is not ideal for all project structures.Describe the solution you'd like
MUJOCO_LOG.TXT
is generated.Describe alternatives you've considered
Additional context
N/A
The text was updated successfully, but these errors were encountered: