~/.profile
is a user specific script file (contrary to the scripts in the unix question you quoted). If you want to capture its output you have to redirect stdout and/or stderr to a file.
In /var/log you can see traces of events that are system relevant or concern all users.