getScope

@Nullable()
public @Nullable() LoggingScope getScope(ScopeType type)

Returns the scope instance of the specified type for this context, or null if no such scope was bound to this context. This method searches parent contexts as well.

Implementations which do not support scope types should return null, which can be achieved by using the default method.