     ///   - event: A particular `LoggingEvent` of interest.
     ///   - context: Additional context for the message.
     /// - Returns: A `String` with information to log concerning the event.
-    internal static func warning(for event: LoggingEvent, context: Any? = nil) -> String {
-        return message(for: event, level: .warning)
+    internal static func warning(for event: LoggingEvent,
+                                 context: CustomStringConvertible? = nil) -> String {
+        return message(for: event, level: .warning, context: context)
     }
 
     /// An error message relating to a particular event of interest.

    ///   - event: A particular `LoggingEvent` of interest.
    ///   - context: Additional context for the message.
    /// - Returns: A `String` with information to log concerning the event.
    internal static func debug(for event: LoggingEvent, context: Any? = nil) -> String {
        return message(for: event, level: .debug)
    }

    /// An informational message relating to a particular event of interest.

    ///   - event: A particular `LoggingEvent` of interest.
    ///   - context: Additional context for the message.
    /// - Returns: A `String` with information to log concerning the event.
    internal static func error(for event: LoggingEvent,
                               context: CustomStringConvertible? = nil) -> String {
        return message(for: event, level: .error, context: context)
    }

    // MARK: - Private methods
