#13126 RiaLogging: Use std::string_view instead of QString for logging

This commit is contained in:
Kristian Bendiksen committed 2026-05-08 10:11:09 +02:00
1 parent 4957bf5a8b
commit 5ffcb69acc
231 files changed
+1082 -893

No files matched your search

@@ -200,7 +200,7 @@ bool RigNNCData::ensureAllConnectionDataIsProcessed()
caf::ProgressInfo progressInfo( 3, "Computing NNC Data" );
const QString logKeyword = "RigNNCData";
RiaLogging::info( "NNC geometry computation - starting process", logKeyword );
RiaLogging::info( "NNC geometry computation - starting process", logKeyword.toStdString() );
buildPolygonsForEclipseConnections();
progressInfo.incrementProgress();
@@ -217,20 +217,20 @@ bool RigNNCData::ensureAllConnectionDataIsProcessed()
size_t noCommonAreaCount = connectionsWithNoCommonArea( noCommonAreaText, maxItemCount );
RiaLogging::info( "NNC geometry computation - completed process", logKeyword );
RiaLogging::info( "NNC geometry computation - completed process", logKeyword.toStdString() );
RiaLogging::info( QString( "Native NNC count : %1" ).arg( eclipseConnectionCount() ), logKeyword );
RiaLogging::info( QString( "Computed NNC count : %1" ).arg( m_connections.size() ), logKeyword );
RiaLogging::info( std::format( "Native NNC count : {}", eclipseConnectionCount() ), logKeyword.toStdString() );
RiaLogging::info( std::format( "Computed NNC count : {}", m_connections.size() ), logKeyword.toStdString() );
RiaLogging::info( QString( "NNCs with no common area count : %1" ).arg( noCommonAreaCount ), logKeyword );
RiaLogging::info( std::format( "NNCs with no common area count : {}", noCommonAreaCount ), logKeyword.toStdString() );
if ( !noCommonAreaText.isEmpty() )
{
RiaLogging::info( QString( "Listing first %1 NNCs with no common area " ).arg( noCommonAreaText.size() ), logKeyword );
RiaLogging::info( std::format( "Listing first {} NNCs with no common area ", noCommonAreaText.size() ), logKeyword.toStdString() );
for ( const auto& s : noCommonAreaText )
{
RiaLogging::info( s, logKeyword );
RiaLogging::info( s.toStdString(), logKeyword.toStdString() );
}
}
}