:environment print to log

Hi
How to display all existing environment variables (global in local) in error log?

:log error [:environment print]
doesn’t work as it prints to the console.

Any solutions?

Thanks

Try accessing the variables via “/system script environment” and its getters.

:local a [/system script environment get [/system script environment find name="variableName"] value];
:log error $a;

it works ,thanks.i used to share value via access-list name