pub fn should_output_to_client(&self, minimum_client_severity: &CoordClientSeverity) -> bool {
        match (minimum_client_severity, self) {
            // INFO messages are always sent
            (_, Severity::Info) => true,
            (CoordClientSeverity::Error, Severity::Error | Severity::Fatal | Severity::Panic) => {
                true
            }
            (
                CoordClientSeverity::Warning,
                Severity::Error | Severity::Fatal | Severity::Panic | Severity::Warning,
            ) => true,
            (
                CoordClientSeverity::Notice,
                Severity::Error
                | Severity::Fatal
                | Severity::Panic
                | Severity::Warning
                | Severity::Notice,
            ) => true,
            (
                CoordClientSeverity::Info,
                Severity::Error
                | Severity::Fatal
                | Severity::Panic
                | Severity::Warning
                | Severity::Notice,
            ) => true,
            (
                CoordClientSeverity::Log,
                Severity::Error
                | Severity::Fatal
                | Severity::Panic
                | Severity::Warning
                | Severity::Notice
                | Severity::Log,
            ) => true,
            (
                CoordClientSeverity::Debug1
                | CoordClientSeverity::Debug2
                | CoordClientSeverity::Debug3
                | CoordClientSeverity::Debug4
                | CoordClientSeverity::Debug5,
                _,
            ) => true,

            (
                CoordClientSeverity::Error,
                Severity::Warning | Severity::Notice | Severity::Log | Severity::Debug,
            ) => false,
            (CoordClientSeverity::Warning, Severity::Notice | Severity::Log | Severity::Debug) => {
                false
            }
            (CoordClientSeverity::Notice, Severity::Log | Severity::Debug) => false,
            (CoordClientSeverity::Info, Severity::Log | Severity::Debug) => false,
            (CoordClientSeverity::Log, Severity::Debug) => false,
        }
    }
/// Checks if a message of a given severity level should be sent to a client.
///
/// The ordering of severity levels used for client-level filtering differs from the
/// one used for server-side logging in two aspects: INFO messages are always sent,
/// and the LOG severity is considered as below NOTICE, while it is above ERROR for
/// server-side logs.
///
/// Postgres only considers the session setting after the client authentication
/// handshake is completed. Since this function is only called after client authentication
/// is done, we are not treating this case right now, but be aware if refactoring it.
Checks if a message of a given severity level should be sent to a client.
The ordering of severity levels used for client-level filtering differs from the
one used for server-side logging in two aspects: INFO messages are always sent,
and the LOG severity is considered as below NOTICE, while it is above ERROR for
server-side logs.

Postgres only considers the session setting after the client authentication
handshake is completed. Since this function is only called after client authentication
is done, we are not treating this case right now, but be aware if refactoring it.
Checks if a message of a given severity level should be sent to a client . The ordering of severity levels used for client - level filtering differs from the one used for server - side logging in two aspects : INFO messages are always sent and the LOG severity is considered as below NOTICE while it is above ERROR for server - side logs . Postgres only considers the session setting after the client authentication handshake is completed . Since this function is only called after client authentication is done we are not treating this case right now but be aware if refactoring it .
pub fn should_output_to_client(&self, minimum_client_severity: &CoordClientSeverity) -> bool {
        match (minimum_client_severity, self) {
            // INFO messages are always sent
            (_, Severity::Info) => true,
            (CoordClientSeverity::Error, Severity::Error | Severity::Fatal | Severity::Panic) => {
                true
            }
            (
                CoordClientSeverity::Warning,
                Severity::Error | Severity::Fatal | Severity::Panic | Severity::Warning,
            ) => true,
            (
                CoordClientSeverity::Notice,
                Severity::Error
                | Severity::Fatal
                | Severity::Panic
                | Severity::Warning
                | Severity::Notice,
            ) => true,
            (
                CoordClientSeverity::Info,
                Severity::Error
                | Severity::Fatal
                | Severity::Panic
                | Severity::Warning
                | Severity::Notice,
            ) => true,
            (
                CoordClientSeverity::Log,
                Severity::Error
                | Severity::Fatal
                | Severity::Panic
                | Severity::Warning
                | Severity::Notice
                | Severity::Log,
            ) => true,
            (
                CoordClientSeverity::Debug1
                | CoordClientSeverity::Debug2
                | CoordClientSeverity::Debug3
                | CoordClientSeverity::Debug4
                | CoordClientSeverity::Debug5,
                _,
            ) => true,
            (
                CoordClientSeverity::Error,
                Severity::Warning | Severity::Notice | Severity::Log | Severity::Debug,
            ) => false,
            (CoordClientSeverity::Warning, Severity::Notice | Severity::Log | Severity::Debug) => {
                false
            }
            (CoordClientSeverity::Notice, Severity::Log | Severity::Debug) => false,
            (CoordClientSeverity::Info, Severity::Log | Severity::Debug) => false,
            (CoordClientSeverity::Log, Severity::Debug) => false,
        }
    }
pub fn should_output_to_client ( & self , minimum_client_severity : & CoordClientSeverity ) -> bool { match ( minimum_client_severity , self ) { // INFO messages are always sent ( _ , Severity :: Info ) => true , ( CoordClientSeverity :: Error , Severity :: Error | Severity :: Fatal | Severity :: Panic ) => { true } ( CoordClientSeverity :: Warning , Severity :: Error | Severity :: Fatal | Severity :: Panic | Severity :: Warning , ) => true , ( CoordClientSeverity :: Notice , Severity :: Error | Severity :: Fatal | Severity :: Panic | Severity :: Warning | Severity :: Notice , ) => true , ( CoordClientSeverity :: Info , Severity :: Error | Severity :: Fatal | Severity :: Panic | Severity :: Warning | Severity :: Notice , ) => true , ( CoordClientSeverity :: Log , Severity :: Error | Severity :: Fatal | Severity :: Panic | Severity :: Warning | Severity :: Notice | Severity :: Log , ) => true , ( CoordClientSeverity :: Debug1 | CoordClientSeverity :: Debug2 | CoordClientSeverity :: Debug3 | CoordClientSeverity :: Debug4 | CoordClientSeverity :: Debug5 , _ , ) => true , ( CoordClientSeverity :: Error , Severity :: Warning | Severity :: Notice | Severity :: Log | Severity :: Debug , ) => false , ( CoordClientSeverity :: Warning , Severity :: Notice | Severity :: Log | Severity :: Debug ) => { false } ( CoordClientSeverity :: Notice , Severity :: Log | Severity :: Debug ) => false , ( CoordClientSeverity :: Info , Severity :: Log | Severity :: Debug ) => false , ( CoordClientSeverity :: Log , Severity :: Debug ) => false , } }
Checks if a message of a given severity level should be sent to a client.
Checks if a message of a given severity level should be sent to a client .
&self
minimum_client_severity
&CoordClientSeverity
&self
minimum_client_severity
&CoordClientSeverity