def call( severity, time, progname, message )
severity ||= 'DEBUG'
time ||= Time.now
entry = {
'@version' => LOG_FORMAT_VERSION,
'@timestamp' => time.iso8601( 3 ),
'level' => severity,
'progname' => progname,
'message' => message,
}
return JSON.generate( entry )
end