Corrected Log class inizialization.
Corrected a variable name.