SoulLogger
Toggle table of contents
1.0-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
SoulLogger
SoulLogger
/
com.lestere.opensource.metrics
/
SoulLoggerMetrics
Soul
Logger
Metrics
class
SoulLoggerMetrics
(
registry
:
MeterRegistry
,
metricsPrefix
:
String
=
"soullogger"
)
(
source
)
Members
Constructors
Soul
Logger
Metrics
Link copied to clipboard
constructor
(
registry
:
MeterRegistry
,
metricsPrefix
:
String
=
"soullogger"
)
Types
Companion
Link copied to clipboard
object
Companion
Metrics
State
Link copied to clipboard
data
class
MetricsState
(
val
totalWritten
:
Long
=
0
,
val
totalDropped
:
Long
=
0
,
val
totalErrors
:
Long
=
0
,
val
currentQueueSize
:
Long
=
0
,
val
rotationCount
:
Long
=
0
)
Properties
flush
Timer
Link copied to clipboard
val
flushTimer
:
Timer
logs
Dropped
Link copied to clipboard
val
logsDropped
:
Counter
logs
Errors
Link copied to clipboard
val
logsErrors
:
Counter
log
Size
Summary
Link copied to clipboard
val
logSizeSummary
:
DistributionSummary
logs
Written
Link copied to clipboard
val
logsWritten
:
Counter
metrics
State
Link copied to clipboard
val
metricsState
:
StateFlow
<
SoulLoggerMetrics.MetricsState
>
write
Timer
Link copied to clipboard
val
writeTimer
:
Timer
Functions
get
Summary
Link copied to clipboard
fun
getSummary
(
)
:
MetricsSummaryResponse
record
Flush
Time
Link copied to clipboard
fun
recordFlushTime
(
timeNanos
:
Long
)
record
Log
Dropped
Link copied to clipboard
fun
recordLogDropped
(
)
record
Log
Error
Link copied to clipboard
fun
recordLogError
(
)
record
Log
Written
Link copied to clipboard
fun
recordLogWritten
(
logger
:
Logger
)
record
Queue
Size
Link copied to clipboard
fun
recordQueueSize
(
size
:
Int
)
record
Rotation
Link copied to clipboard
fun
recordRotation
(
)
record
Write
Time
Link copied to clipboard
fun
recordWriteTime
(
timeNanos
:
Long
)