https://kotlinlang.org logo
Title
a

aiidziis

06/30/2020, 12:45 PM
Hey! Are there plans adding more flexible logging strategy for
mvikotlin-logging
, for now everything gets logged,
storeName
,
eventType
and
value
, but
value
sometimes gets huge (mainly because of
Model
and
State
data classes) and pollutes the logcat. I saw that now we can specify
maxLenght
for log message, but that is more like guessing game.
a

Arkadii Ivanov

06/30/2020, 1:03 PM
How would you like to make it more flexible? Now it's a good timing since stable version is not release yet.
I will review the logging functionality before release.
a

aiidziis

06/30/2020, 1:39 PM
Actually only thing that is bothering me that you can’t opt out of
value
logging, because
storeName
and
eventType
are mandatory, but
value
sometimes pollutes logcat.
a

Arkadii Ivanov

06/30/2020, 1:52 PM
So basically you would like to log everything but values?
a

aiidziis

06/30/2020, 1:54 PM
yes
a

Arkadii Ivanov

06/30/2020, 3:08 PM
Thanks, I will keep this in mind. I think it is doable.
👍🏻 1
PR has merged, let me know if you have any questions. https://github.com/arkivanov/MVIKotlin/pull/97
a

aiidziis

07/03/2020, 4:38 AM
Nice! Looks good. 🤩