-
Notifications
You must be signed in to change notification settings - Fork 100
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
log module command #283
Comments
With a Here is some code snippet as example: # override 'module' procedure to log each call made by user
rename ::module ::__module
proc module {command args} {
if {[getEvalModuleStackDepth] == 0} {
exec logger -t module "[get-env USER]: $command [join $args]"
}
return [eval __module "{$command}" $args]
} I will let this issue open until I add an example recipe for this use case in the documentation cookbook. |
Thanks Xavier, |
Yes the example only log the module command that are typed by user, not those within modulefiles. If you want to see everything, just remove the |
Hello
do you known if it is possible to include a function of log each command used ?
the output can be send to a syslog or anything other system of log for permit to see the evolution of usage of each tool (tool and others)
it's a cad view :)
The text was updated successfully, but these errors were encountered: