Skip to content

Commit c0a4e73

Browse files
committed
Use log mehtod to support plugin specific log level
1 parent 08c5244 commit c0a4e73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fluent/plugin/out_azure-loganalytics.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ def write(chunk)
9090
begin
9191
res = @client.post_data(@log_type, records, @time_generated_field)
9292
if not Azure::Loganalytics::Datacollectorapi::Client.is_success(res)
93-
$log.fatal "DataCollector API request failure: error code: "
93+
log.fatal "DataCollector API request failure: error code: "
9494
+ "#{res.code}, data=>" + records.to_json
9595
end
9696
rescue Exception => ex
97-
$log.fatal "Exception occured in posting to DataCollector API: "
97+
log.fatal "Exception occured in posting to DataCollector API: "
9898
+ "'#{ex}', data=>" + records.to_json
9999
end
100100
end

0 commit comments

Comments
 (0)