Get Firefox version for logfile

In my addon, I write errors and action to a logfile and can use this for error analysis. Is there some way to get/read the current browser and version? I know how to get addon version, but I want to have the browser version.