On 15. 11. 21 6:03, Stuart Douglas wrote:
> (Adding back the list)
>
> We could, but there is no real guarantee that the ExtLogRecord is
> serializable,
It should be, or? I mean it's Serializable and has its own
readObject/writeObject methods and LogRecord is also Serializable and
parameters are serialized as an array of Object.toString() values.
> and it would also potentially slow down JVM startup for no
> real gain (as the majority of the messages will not be loggable anyway).
Would it make sense to serialize the log levels separately (several
files) and then rebuild the queue according to the minimal log level
used at runtime? Of course, each log record would have to retain the
"index" and the reconstruction would not be for free but in most cases
only few log records will be loaded (INFO/WARN/ERROR).
>
> Something that did just occur to me is maybe I could hold TRACE/DEBUG
> messages in a queue held by a SoftReference, so they are only dropped if
> there is actual memory pressure. Maintaining order across two different
> queues would be a bit of a pain though.
>
> Stuart
>
> On Mon, 15 Nov 2021 at 15:13, Jason Greene <
jason....@redhat.com
> <mailto:
jason....@redhat.com>> wrote:
>
> What if we had a FS backed overflow log? It could probably be done
> pretty efficiently since you would be writing in batches.
>
> On Nov 14, 2021 at 9:32:35 PM, Stuart Douglas <
sdou...@redhat.com
>> <mailto:
quarkus-dev...@googlegroups.com>.
>> <
https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cwmU8LJ%2BMqp4X5TsvDehUNEX1gsyV2F%3DQqzVw5zzzDZZg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Quarkus Development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
quarkus-dev...@googlegroups.com
> <mailto:
quarkus-dev...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cxh%3DM%3DmfXPxwwdozhpxb12VDLmWbJVGi%3DGrw2bNiaZL0Q%40mail.gmail.com
> <
https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cxh%3DM%3DmfXPxwwdozhpxb12VDLmWbJVGi%3DGrw2bNiaZL0Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
Martin Kouba
Software Engineer
Red Hat, Czech Republic