Skip to content

Commit

Permalink
Legg til loggfelt
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerga committed Jul 28, 2023
1 parent 98ba60b commit 4481918
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ package no.nav.helsearbeidsgiver.felles.utils

import no.nav.helsearbeidsgiver.felles.BehovType
import no.nav.helsearbeidsgiver.felles.EventName
import no.nav.helsearbeidsgiver.felles.rapidsrivers.pritopic.Pri
import java.util.UUID

object Log {
fun <T : Any> klasse(value: T) = "class" to value.simpleName()

fun event(value: EventName) = "event" to value.name

fun priNotis(value: Pri.NotisType) = "pri_notis" to value.name

fun behov(value: BehovType) = "behov" to value.name

fun transaksjonId(value: UUID) = "transaksjon_id" to value.toString()
Expand Down

0 comments on commit 4481918

Please sign in to comment.