Having issue on running a simple config file

In Windows 7, aommand I used to run logstash;
..\logstash-2.3.2\bin\logstash -f "new-apache.conf" --debug

Config File: new-apache.conf;
input {
file {
path => "server.log"
start_position => "beginning"
}
}
output {
file {
codec => { line { format => "%{[time]} | %{[severity]} : /%{[thread]}/ %{[loggername]} (%{[sourcemethodname]}) - %{[message]}" } }
path => "result.log"
}
}

Got following error;
Using JAVA_HOME=C:\Program Files\Java\jre1.8.0_45 retrieved from C:\ProgramData
Oracle\java\javapath\java.exe
io/console not supported; tty will not be manipulated
←[36mReading config file {:config_file=>"D:/SRRAGHU/ProjectInfo/Adv360Tasks/R_An
d_D/LogVisualizer/samples/new-apache.conf", :level=>:debug, :file=>"/SRRAGHU/Pro
jectInfo/Adv360Tasks/R_And_D/LogVisualizer/logstash-2.3.2/vendor/bundle/jruby/1.
9/gems/logstash-core-2.3.2-java/lib/logstash/config/loader.rb", :line=>"69", :me
thod=>"local_config"}←[0m
←[31mfetched an invalid config {:config=>"input {\n file {\n path =>
"server.log"\n start_position => "beginning"\n }\n}\n \noutput {
n file {\n\t codec => { line { format => "%{[time]} | %{[severity]} : /%{
[thread]}/ %{[loggername]} (%{[sourcemethodname]}) - %{[message]}" } }\n
path => "result.log"\n }\n}\n", :reason=>"Expected one of #, => at line 10
, column 22 (byte 140) after output {\n file {\n\t codec => { line ", :lev
el=>:error, :file=>"/SRRAGHU/ProjectInfo/Adv360Tasks/R_And_D/LogVisualizer/logst
ash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/age
nt.rb", :line=>"390", :method=>"create_pipeline"}←[0m
←[32mstarting agent {:level=>:info, :file=>"/SRRAGHU/ProjectInfo/Adv360Tasks/R_A
nd_D/LogVisualizer/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3
.2-java/lib/logstash/agent.rb", :line=>"207", :method=>"execute"}←[0m
The signal HUP is in use by the JVM and will not work correctly on this platform

I am unable to find what is my mistake here. Can some one help to resolve this?

And then looking at Line codec plugin | Logstash Reference [8.11] | Elastic I am not sure if that format part is correct?

The docs aren't too clear unfortunately.