Redirecting console output to file?

Hello all,

Is there a way to have * write it’s console output to a file.

My goal is to see the console output from a browser.

Can this be done ?

Many thanks …

Noël

It can be done with the tee utility:

asterisk -vvvr|tee /tmp/astlog

Also just the logging function can do this. Just enabled “verbose” for the messages line in logger.conf.

Tnx angler !

Will need to experiment some more but looks promising …

Noel