GlassFish Tip: log asadmin commands

I don't think I've seen this tip mentioned before in blogs or documentation and yet have had the request from different users and customers.
If you want to log all the asadmin commands, simply set the AS_LOGFILE environment variable to the name of a file.

If you think this should be the default behavior, file an issue (with "3.2" as the "Fix Version"). I'll vote for it!
If you're trying to troubleshoot asadmin (or simply curious) you can set export AS_DEBUG=true to obtain a chatty output.