-record(wm_log_data,
        {resource_module :: atom(),
         start_time :: tuple(),
         method :: atom(),
         headers,
         peer,
         sock,
         path :: string(),
         version,
         response_code,
         response_length,
         end_time :: tuple(),
         finish_time :: tuple(),
         notes}).
-type wm_log_data() :: #wm_log_data{}.

-define(EVENT_LOGGER, webmachine_log_event).

%% method will be an atom only for valid HTTP methods and a string otherwise,
%% see erlang:decode_packet documentation
-record(wm_log_data,
        {resource_module :: atom(),
         start_time :: tuple(),
         method :: atom() | string() | binary(),

         headers,
         peer,
         sock,
         path :: string(),
         version,
         response_code,
         response_length,
         end_time :: tuple(),
         finish_time :: tuple(),
         notes}).
-type wm_log_data() :: #wm_log_data{}.

-define(EVENT_LOGGER, webmachine_log_event).

Fix the type for method
Fix the type for method

A more precise type is documented the referenced documentation
