Undefined Error method While parsing Log File

HI,
i have attached my Ruby code, which i am facing some issues.
Its throwing following Error -
Optparsetest.rb:99:in <main>': undefined methodlogfile’ for
#OptionParser:0x2ddc440 (NoMethodEr
ror)

let me know where i am making a mistake.

Cheers