DnV1eX / GoogleCloudLogging

Swift (Darwin) library for logging application events in Google Cloud.
Apache License 2.0
32 stars 17 forks source link

Log size handling #6

Open rokgregoric opened 2 years ago

rokgregoric commented 2 years ago

The log size handling is wrong .. it is based on the number of lines before being encoded.

I see some logs not being uploaded and a log of errors like:

error=errorReceived(GoogleCloudLogging.GoogleCloudLogging.Response.Error(code: 400, message: "Request payload size exceeds the limit: 10485760 bytes.", status: "INVALID_ARGUMENT")) [GoogleCloudLogging] Unable to upload 
excludedLogEntryCount=4 maxLogSize=10000000 [GoogleCloudLogging] Some log entries are excluded from the upload due to exceeding the log size limit
xpnewmedia commented 1 year ago

@rokgregoric did you continue using this lib despite those errors and missed logs? did you fix?

rokgregoric commented 1 year ago

Forked, fixed it and still using it. Works great!

xpnewmedia commented 1 year ago

I was hoping this was the resolution. I like this lib. is the fork os?

On Mon, Nov 28, 2022 at 1:30 PM Rok Gregorič @.***> wrote:

Forked, fixed it and still using it. Works great!

— Reply to this email directly, view it on GitHub https://github.com/DnV1eX/GoogleCloudLogging/issues/6#issuecomment-1329555583, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANM3O5RCWJPBQVOEIJV7GTDWKT26FANCNFSM55NO3HPA . You are receiving this because you commented.Message ID: @.***>

rokgregoric commented 1 year ago

Here you go: https://github.com/rokgregoric/GoogleCloudLogging I use this in production environments for a few months without problems.