Skip to content

Commit 806dba3

Browse files
committed
refactor: added Status getter to Message struct
1 parent 9017812 commit 806dba3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

logger.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ func NewMessage(
6666
}
6767
}
6868

69+
// Status returns the status of a message
70+
func (m *Message) Status() gologgerstatus.Status {
71+
return m.status
72+
}
73+
6974
// String gets the string representation of a message
7075
func (m *Message) String() string {
7176
var formattedMessage []string

0 commit comments

Comments
 (0)