development/Common/Render/source/Gui/imgui_OutputConsole.cpp
// Output the Log to the standard console using fprintf
Output the Log to the standard console using fprintf
Output the Log to the standard console using fprintf
void OutputConsole::OnOutput(const ylog::Channel::Ptr& aChannelPtr, const ylog::Log& aLog) const
{
    const ylog::DateTime& time = aLog.getTime();
    math3d::Color color = toWin32Attribute(aLog.getSeverity());
    char tag[5] = { '\0' };
    if (aLog.GetTag())
    {
        *(reinterpret_cast<uint32_t*>(tag)) = aLog.GetTag();
    }
    std::string message = fmt::format("{}  {} [{}{}{}] {}",
        time.ToString(),
        aChannelPtr->getName(),
        ylog::Log::toString(aLog.getSeverity()), tag ? ":" : "", tag,
        aLog.getStream().str().c_str());
    exampleAppLog.AddLog(message, color);
}
void OutputConsole :: OnOutput ( const ylog :: Channel :: Ptr & aChannelPtr , const ylog :: Log & aLog ) const { const ylog :: DateTime & time = aLog . getTime ( ) ; math3d :: Color color = toWin32Attribute ( aLog . getSeverity ( ) ) ; char tag [ 5 ] = { ' \0 ' } ; if ( aLog . GetTag ( ) ) { * ( reinterpret_cast < uint32_t * > ( tag ) ) = aLog . GetTag ( ) ; } std :: string message = fmt :: format ( " " , time . ToString ( ) , aChannelPtr -> getName ( ) , ylog :: Log :: toString ( aLog . getSeverity ( ) ) , tag ? " " : " " , tag , aLog . getStream ( ) . str ( ) . c_str ( ) ) ; exampleAppLog . AddLog ( message , color ) ; }
Output the Log to the standard console using fprintf
Output the Log to the standard console using fprintf