concrete/src/Logging/Channels.php
public static function getChannelDisplayName($channel)
    {
        $text = new Text();
        switch ($channel) {
            case self::CHANNEL_APPLICATION:
                return tc('Log channel', 'Application');
            case self::CHANNEL_AUTHENTICATION:
                return tc('Log channel', 'Authentication');
            case self::CHANNEL_EMAIL:
                return tc('Log channel', 'Sent Emails');
            case self::CHANNEL_EXCEPTIONS:
                return tc('Log channel', 'Exceptions');
            case self::CHANNEL_SECURITY:
                return tc('Log channel', 'Security');
            case self::CHANNEL_PACKAGES:
                return tc('Log channel', 'Packages');
            case self::CHANNEL_SPAM:
                return tc('Log channel', 'Spam');
            case self::CHANNEL_SITE_ORGANIZATION:
                return tc('Log channel', 'Site Organization');
            case self::CHANNEL_USERS:
                return tc('Log channel', 'Users');
            case self::CHANNEL_API:
                return tc('Log channel', 'API');
            default:
                return tc('Log channel', $text->unhandle($channel));
        }
    }
public static function getChannelDisplayName($channel)
    {
        $text = new Text();
        switch ($channel) {
            case self::CHANNEL_APPLICATION:
                return tc('Log channel', 'Application');
            case self::CHANNEL_AUTHENTICATION:
                return tc('Log channel', 'Authentication');
            case self::CHANNEL_EMAIL:
                return tc('Log channel', 'Sent Emails');
            case self::CHANNEL_EXCEPTIONS:
                return tc('Log channel', 'Exceptions');
            case self::CHANNEL_SECURITY:
                return tc('Log channel', 'Security');
            case self::CHANNEL_PACKAGES:
                return tc('Log channel', 'Packages');
            case self::CHANNEL_SPAM:
                return tc('Log channel', 'Spam');
            case self::CHANNEL_SITE_ORGANIZATION:
                return tc('Log channel', 'Site Organization');
            case self::CHANNEL_USERS:
                return tc('Log channel', 'Users');
            case self::CHANNEL_API:
                return tc('Log channel', 'API');
            default:
                return tc('Log channel', $text->unhandle($channel));
        }
    }
public static function getChannelDisplayName ( $ channel ) { $ text = new Text ( ) ; switch ( $ channel ) { case self :: CHANNEL_APPLICATION : return tc ( 'Log channel' , 'Application' ) ; case self :: CHANNEL_AUTHENTICATION : return tc ( 'Log channel' , 'Authentication' ) ; case self :: CHANNEL_EMAIL : return tc ( 'Log channel' , 'Sent Emails' ) ; case self :: CHANNEL_EXCEPTIONS : return tc ( 'Log channel' , 'Exceptions' ) ; case self :: CHANNEL_SECURITY : return tc ( 'Log channel' , 'Security' ) ; case self :: CHANNEL_PACKAGES : return tc ( 'Log channel' , 'Packages' ) ; case self :: CHANNEL_SPAM : return tc ( 'Log channel' , 'Spam' ) ; case self :: CHANNEL_SITE_ORGANIZATION : return tc ( 'Log channel' , 'Site Organization' ) ; case self :: CHANNEL_USERS : return tc ( 'Log channel' , 'Users' ) ; case self :: CHANNEL_API : return tc ( 'Log channel' , 'API' ) ; default : return tc ( 'Log channel' , $ text -> unhandle ( $ channel ) ) ; } }
Get the display name of a channel.

@param string $channel

@return string
Get the display name of a channel .