Initial implementation
This commit is contained in:
16
Tests/Logging OSLog Tests/Logging Test.swift
Normal file
16
Tests/Logging OSLog Tests/Logging Test.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
import Testing
|
||||
import Logging
|
||||
import LoggingOSLog
|
||||
|
||||
@Test func isConstructable() {
|
||||
let _ = LoggingOSLog(subsystem: "de.astzweig.app", category: "Image Processing")
|
||||
}
|
||||
|
||||
@Test func canAddAsLoggingBackend() {
|
||||
LoggingSystem.bootstrap(LoggingOSLog.init)
|
||||
}
|
||||
|
||||
@Test func canLogMessage() {
|
||||
let logger = Logging.Logger(label: "de.astzweig.loggingoslog.Test")
|
||||
logger.info("Test message")
|
||||
}
|
||||
Reference in New Issue
Block a user