Add flash log function to bash