error_logger_file_h: Refactor and modernize code
error_logger_file_h: Refactor and modernize code

Refactor, simplify, and modernize the code to facilitate future
improvements in the following commits.

dgud/otp,lucafavatella/otp,massemanet/otp,ahmedshafeeq/otp,msantos/otp,RichMorin/otp,derek121/otp,aboroska/otp,entropiae/otp,getong/otp,lrascao/otp,RichMorin/otp,erlang/otp,weisslj/otp,jemsbhai/otp,psyeugenic/otp,beni55/otp,hairyhum/otp,basho/otp,bernardd/otp,getong/otp,jamesruan/otp,emacsmirror/erlang,entropiae/otp,getong/otp,platinumthinker/otp,vladdu/otp,bugs-erlang-org/otp,riverrun/otp,falkevik/otp,benoitc/otp-1,mikpe/otp,sitexa/otp,massemanet/otp,neeraj9/otp,legoscia/otp,dumbbell/otp,falkevik/otp,riverrun/otp,cobusc/otp,rlipscombe/otp,tuncer/otp,basho/otp,weisslj/otp,vladdu/otp,RaimoNiskanen/otp,RoadRunnr/otp,falkevik/otp,lrascao/otp,ahmedshafeeq/otp,emacsmirror/erlang,bjorng/otp,lemenkov/otp,NOMORECOFFEE/otp,rlipscombe/otp,matwey/otp,falkevik/otp,palas/otp,vinoski/otp,legoscia/otp,johanclaesson/otp,palas/otp,weisslj/otp,RaimoNiskanen/otp,goertzenator/otp,rlipscombe/otp,platinumthinker/otp,dumbbell/otp,vinoski/otp,erlang/otp,jj1bdx/otp,basho/otp,getong/otp,emile/otp,bsmr-erlang/otp,beni55/otp,goertzenator/otp,basho/otp,lrascao/otp,g-andrade/otp,bernardd/otp,saleyn/otp,dgud/otp,falkevik/otp,palas/otp,vinoski/otp,NOMORECOFFEE/otp,mikpe/otp,psyeugenic/otp,ahmedshafeeq/otp,getong/otp,lemenkov/otp,dumbbell/otp,vinoski/otp,aboroska/otp,bsmr-erlang/otp,release-project/otp,ferd/otp,derek121/otp,derek121/otp,RoadRunnr/otp,goertzenator/otp,potatosalad/otp,kvakvs/otp,matwey/otp,platinumthinker/otp,kvakvs/otp,jj1bdx/otp,jamesruan/otp,massemanet/otp,matwey/otp,falkevik/otp,bernardd/otp,NOMORECOFFEE/otp,hairyhum/otp,neeraj9/otp,rlipscombe/otp,isvilen/otp,dgud/otp,saleyn/otp,ferd/otp,ferd/otp,dgud/otp,msantos/otp,tuncer/otp,bugs-erlang-org/otp,johanclaesson/otp,matwey/otp,emile/otp,c-rack/otp,emile/otp,benoitc/otp-1,bernardd/otp,bsmr-erlang/otp,bsmr-erlang/otp,vladdu/otp,RoadRunnr/otp,RichMorin/otp,uabboli/otp,lantti/otp,rlipscombe/otp,massemanet/otp,uabboli/otp,psyeugenic/otp,mikpe/otp,legoscia/otp,legoscia/otp,palas/otp,theom/otp,dumbbell/otp,jinshana/otp,basho/otp,bsmr-erlang/otp,erlang/otp,mikpe/otp,RaimoNiskanen/otp,mikpe/otp,getong/otp,matwey/otp,uabboli/otp,theom/otp,jinshana/otp,tuncer/otp,erlang/otp,theom/otp,bugs-erlang-org/otp,jinshana/otp,dumbbell/otp,fenollp/otp,bjorng/otp,lantti/otp,release-project/otp,msantos/otp,falkevik/otp,g-andrade/otp,c-rack/otp,erlang/otp,rlipscombe/otp,jemsbhai/otp,riverrun/otp,uabboli/otp,falkevik/otp,RaimoNiskanen/otp,bsmr-erlang/otp,release-project/otp,bjorng/otp,emacsmirror/erlang,bjorng/otp,potatosalad/otp,bjorng/otp,sitexa/otp,ahmedshafeeq/otp,jamesruan/otp,bugs-erlang-org/otp,electricimp/otp,lightcyphers/otp,release-project/otp,getong/otp,release-project/otp,c-rack/otp,entropiae/otp,saleyn/otp,emacsmirror/erlang,benoitc/otp-1,uabboli/otp,jemsbhai/otp,c-rack/otp,enikki/otp,enikki/otp,bsmr-erlang/otp,bugs-erlang-org/otp,tuncer/otp,derek121/otp,emacsmirror/erlang,massemanet/otp,riverrun/otp,weisslj/otp,msantos/otp,RichMorin/otp,aboroska/otp,lrascao/otp,jinshana/otp,NOMORECOFFEE/otp,rlipscombe/otp,falkevik/otp,johanclaesson/otp,dgud/otp,potatosalad/otp,benoitc/otp-1,bjorng/otp,emacsmirror/erlang,ahmedshafeeq/otp,fenollp/otp,johanclaesson/otp,palas/otp,kvakvs/otp,c-rack/otp,derek121/otp,kvakvs/otp,bugs-erlang-org/otp,kvakvs/otp,bernardd/otp,electricimp/otp,platinumthinker/otp,riverrun/otp,neeraj9/otp,johanclaesson/otp,uabboli/otp,cobusc/otp,neeraj9/otp,bugs-erlang-org/otp,potatosalad/otp,weisslj/otp,jinshana/otp,lantti/otp,isvilen/otp,platinumthinker/otp,jemsbhai/otp,cobusc/otp,riverrun/otp,bsmr-erlang/otp,massemanet/otp,erlang/otp,johanclaesson/otp,vladdu/otp,jemsbhai/otp,tuncer/otp,ahmedshafeeq/otp,sitexa/otp,dgud/otp,electricimp/otp,goertzenator/otp,ahmedshafeeq/otp,vladdu/otp,hairyhum/otp,isvilen/otp,legoscia/otp,c-rack/otp,jj1bdx/otp,jemsbhai/otp,isvilen/otp,bernardd/otp,lucafavatella/otp,vinoski/otp,aboroska/otp,jinshana/otp,RaimoNiskanen/otp,jinshana/otp,platinumthinker/otp,RoadRunnr/otp,bernardd/otp,erlang/otp,bugs-erlang-org/otp,jamesruan/otp,neeraj9/otp,legoscia/otp,msantos/otp,NOMORECOFFEE/otp,fenollp/otp,lucafavatella/otp,hairyhum/otp,dgud/otp,msantos/otp,mikpe/otp,lightcyphers/otp,dumbbell/otp,palas/otp,electricimp/otp,hairyhum/otp,psyeugenic/otp,psyeugenic/otp,isvilen/otp,release-project/otp,theom/otp,lucafavatella/otp,vinoski/otp,g-andrade/otp,vinoski/otp,bsmr-erlang/otp,mikpe/otp,c-rack/otp,bernardd/otp,RaimoNiskanen/otp,ahmedshafeeq/otp,basho/otp,RoadRunnr/otp,weisslj/otp,cobusc/otp,emile/otp,g-andrade/otp,lemenkov/otp,palas/otp,entropiae/otp,getong/otp,NOMORECOFFEE/otp,matwey/otp,uabboli/otp,saleyn/otp,neeraj9/otp,emile/otp,fenollp/otp,ahmedshafeeq/otp,lantti/otp,matwey/otp,isvilen/otp,beni55/otp,lightcyphers/otp,lightcyphers/otp,release-project/otp,rlipscombe/otp,enikki/otp,theom/otp,sitexa/otp,entropiae/otp,neeraj9/otp,entropiae/otp,lemenkov/otp,benoitc/otp-1,goertzenator/otp,benoitc/otp-1,riverrun/otp,erlang/otp,beni55/otp,vinoski/otp,legoscia/otp,mikpe/otp,theom/otp,lantti/otp,mikpe/otp,cobusc/otp,sitexa/otp,RoadRunnr/otp,potatosalad/otp,release-project/otp,goertzenator/otp,uabboli/otp,g-andrade/otp,basho/otp,cobusc/otp,basho/otp,lantti/otp,vladdu/otp,jj1bdx/otp,fenollp/otp,lightcyphers/otp,emacsmirror/erlang,lemenkov/otp,tuncer/otp,entropiae/otp,basho/otp,massemanet/otp,jj1bdx/otp,isvilen/otp,legoscia/otp,platinumthinker/otp,ferd/otp,emile/otp,vladdu/otp,potatosalad/otp,dgud/otp,jj1bdx/otp,fenollp/otp,goertzenator/otp,isvilen/otp,RichMorin/otp,fenollp/otp,RoadRunnr/otp,goertzenator/otp,enikki/otp,kvakvs/otp,tuncer/otp,cobusc/otp,kvakvs/otp,bjorng/otp,dumbbell/otp,derek121/otp,mikpe/otp,cobusc/otp,saleyn/otp,enikki/otp,lemenkov/otp,hairyhum/otp,palas/otp,weisslj/otp,matwey/otp,c-rack/otp,NOMORECOFFEE/otp,weisslj/otp,aboroska/otp,lucafavatella/otp,RoadRunnr/otp,neeraj9/otp,potatosalad/otp,electricimp/otp,RaimoNiskanen/otp,bjorng/otp,g-andrade/otp,jemsbhai/otp,lightcyphers/otp,platinumthinker/otp,RaimoNiskanen/otp,erlang/otp,RichMorin/otp,saleyn/otp,lantti/otp,lemenkov/otp,kvakvs/otp,vinoski/otp,getong/otp,msantos/otp,beni55/otp,derek121/otp,benoitc/otp-1,aboroska/otp,ferd/otp,potatosalad/otp,psyeugenic/otp,ferd/otp,isvilen/otp,electricimp/otp,saleyn/otp,bjorng/otp,emacsmirror/erlang,hairyhum/otp,enikki/otp,electricimp/otp,emile/otp,massemanet/otp,aboroska/otp,dgud/otp,entropiae/otp,lantti/otp,weisslj/otp,jamesruan/otp,potatosalad/otp,emacsmirror/erlang,psyeugenic/otp,electricimp/otp,msantos/otp,lucafavatella/otp,benoitc/otp-1,RichMorin/otp,lrascao/otp,lucafavatella/otp,johanclaesson/otp,psyeugenic/otp,beni55/otp,lucafavatella/otp,lightcyphers/otp,hairyhum/otp,g-andrade/otp,bernardd/otp,isvilen/otp,dgud/otp,jinshana/otp,g-andrade/otp,theom/otp,emile/otp,release-project/otp,sitexa/otp,saleyn/otp,jamesruan/otp,dumbbell/otp,enikki/otp,sitexa/otp,lrascao/otp,vladdu/otp,vladdu/otp,uabboli/otp,ferd/otp,g-andrade/otp,lrascao/otp,fenollp/otp,lemenkov/otp,legoscia/otp,matwey/otp,massemanet/otp,rlipscombe/otp,g-andrade/otp,RoadRunnr/otp,riverrun/otp,enikki/otp,RichMorin/otp,jamesruan/otp,jj1bdx/otp,kvakvs/otp,derek121/otp,lightcyphers/otp,rlipscombe/otp,jj1bdx/otp,tuncer/otp,aboroska/otp,jemsbhai/otp,ferd/otp,getong/otp,electricimp/otp,theom/otp,vinoski/otp,goertzenator/otp,saleyn/otp,beni55/otp,sitexa/otp,NOMORECOFFEE/otp,jj1bdx/otp,beni55/otp,RaimoNiskanen/otp,fenollp/otp,erlang/otp,johanclaesson/otp,dumbbell/otp,lrascao/otp,jamesruan/otp,lrascao/otp,bjorng/otp,emile/otp,dumbbell/otp,jj1bdx/otp,aboroska/otp,tuncer/otp,ferd/otp,potatosalad/otp,emacsmirror/erlang