If you want to log to the same file:
command1 >> log_file 2>&1
If you want different files:
command1 >> log_file 2>> err_file
1.4m articles
1.4m replys
5 comments
57.0k users