mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
#13126 RiaLogging: Use std::string_view instead of QString for logging
This commit is contained in:
1 parent
4957bf5a8b
commit
5ffcb69acc
231 files changed
+1082
-893
No files matched your search
@@ -788,7 +788,7 @@ void RimEnsembleWellLogCurveSet::updateEnsembleCurves( const std::vector<RimWell
|
||||
}
|
||||
else
|
||||
{
|
||||
RiaLogging::warning( errorMessage );
|
||||
RiaLogging::warning( errorMessage.toStdString() );
|
||||
}
|
||||
|
||||
RimWellPath* wellPath = RimProject::current()->wellPathByName( wellLogFile->wellName() );
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "RiaCurveMerger.h"
|
||||
#include "RiaDefines.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQStringFormatter.h"
|
||||
#include "RiaResultNames.h"
|
||||
#include "RiaWeightedMeanCalculator.h"
|
||||
#include "RiaWellLogUnitTools.h"
|
||||
@@ -99,14 +100,14 @@ void RimEnsembleWellLogStatistics::calculate( const std::vector<RimWellLogLasFil
|
||||
RiaDefines::DepthUnitType depthUnitInFile = fileData->depthUnit();
|
||||
if ( m_depthUnit != RiaDefines::DepthUnitType::UNIT_NONE && m_depthUnit != depthUnitInFile )
|
||||
{
|
||||
RiaLogging::error( QString( "Unexpected depth unit in file %1." ).arg( wellLogFile->fileName() ) );
|
||||
RiaLogging::error( std::format( "Unexpected depth unit in file {}.", wellLogFile->fileName() ) );
|
||||
}
|
||||
m_depthUnit = depthUnitInFile;
|
||||
|
||||
QString logChannelUnitString = fileData->wellLogChannelUnitString( wellLogChannelName );
|
||||
if ( m_logChannelUnitString != RiaWellLogUnitTools<double>::noUnitString() && m_logChannelUnitString != logChannelUnitString )
|
||||
{
|
||||
RiaLogging::error( QString( "Unexpected unit in file %1." ).arg( wellLogFile->fileName() ) );
|
||||
RiaLogging::error( std::format( "Unexpected unit in file {}.", wellLogFile->fileName() ) );
|
||||
}
|
||||
m_logChannelUnitString = logChannelUnitString;
|
||||
|
||||
@@ -122,7 +123,7 @@ void RimEnsembleWellLogStatistics::calculate( const std::vector<RimWellLogLasFil
|
||||
}
|
||||
else
|
||||
{
|
||||
RiaLogging::error( errorMessage );
|
||||
RiaLogging::error( errorMessage.toStdString() );
|
||||
}
|
||||
}
|
||||
bool includeValuesFromPartialCurves = true;
|
||||
@@ -273,7 +274,8 @@ void RimEnsembleWellLogStatistics::calculateByKLayer( const std::vector<RimWellL
|
||||
.arg( offsets->getTopMd( kIndex ) )
|
||||
.arg( offsets->getBottomMd( kIndex ) )
|
||||
.arg( topMean )
|
||||
.arg( bottomMean ) );
|
||||
.arg( bottomMean )
|
||||
.toStdString() );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,13 +350,13 @@ std::shared_ptr<RigWellLogIndexDepthOffset>
|
||||
}
|
||||
else
|
||||
{
|
||||
RiaLogging::error( errorMessage );
|
||||
RiaLogging::error( errorMessage.toStdString() );
|
||||
}
|
||||
}
|
||||
|
||||
if ( minLayerK > maxLayerK )
|
||||
{
|
||||
RiaLogging::error( QString( "Invalid K layers found. Minimum: %1 > Maximum : %2" ).arg( minLayerK ).arg( maxLayerK ) );
|
||||
RiaLogging::error( std::format( "Invalid K layers found. Minimum: {} > Maximum : {}", minLayerK, maxLayerK ) );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -372,7 +374,8 @@ std::shared_ptr<RigWellLogIndexDepthOffset>
|
||||
.arg( topMd )
|
||||
.arg( bottomMd )
|
||||
.arg( numTopMds[kLayer] )
|
||||
.arg( numBottomMds[kLayer] ) );
|
||||
.arg( numBottomMds[kLayer] )
|
||||
.toStdString() );
|
||||
offset->setIndexOffsetDepth( kLayer, topMd, bottomMd, topTvd, bottomTvd );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ void RimEnsembleWellLogs::loadDataAndUpdate()
|
||||
QString errorMessage;
|
||||
if ( !w->readFile( &errorMessage ) )
|
||||
{
|
||||
RiaLogging::warning( errorMessage );
|
||||
RiaLogging::warning( errorMessage.toStdString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "Cloud/RiaOsduConnector.h"
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQStringFormatter.h"
|
||||
|
||||
#include "RimOsduWellLog.h"
|
||||
|
||||
@@ -92,7 +93,7 @@ void RimOsduWellLogDataLoader::parquetDownloadComplete( const QByteArray& conten
|
||||
{
|
||||
int taskId = m_taskIds[id];
|
||||
|
||||
RiaLogging::info( QString( "Parquet download complete. Id: %1 Size: %2" ).arg( id ).arg( contents.size() ) );
|
||||
RiaLogging::info( std::format( "Parquet download complete. Id: {} Size: {}", id, contents.size() ) );
|
||||
|
||||
if ( !contents.isEmpty() )
|
||||
{
|
||||
@@ -105,7 +106,7 @@ void RimOsduWellLogDataLoader::parquetDownloadComplete( const QByteArray& conten
|
||||
}
|
||||
else
|
||||
{
|
||||
RiaLogging::warning( errorMessage );
|
||||
RiaLogging::warning( errorMessage.toStdString() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "RiaColorTables.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQStringFormatter.h"
|
||||
#include "RiaResultNames.h"
|
||||
#include "RiaSimWellBranchTools.h"
|
||||
#include "RiaWellLogUnitTools.h"
|
||||
@@ -765,7 +766,7 @@ void RimWellLogExtractionCurve::mapPropertyValuesFromReferenceWell( std::vector<
|
||||
*std::max_element( indexKValues.cbegin(), indexKValues.cend() ) ) );
|
||||
if ( minLayerK > maxLayerK )
|
||||
{
|
||||
RiaLogging::error( QString( "Invalid K layers found. Minimum: %1 > Maximum : %2" ).arg( minLayerK ).arg( maxLayerK ) );
|
||||
RiaLogging::error( std::format( "Invalid K layers found. Minimum: {} > Maximum : {}", minLayerK, maxLayerK ) );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -884,7 +885,7 @@ void RimWellLogExtractionCurve::findAndLoadWbsParametersFromFiles( const RimWell
|
||||
{
|
||||
QString errMsg =
|
||||
QString( "Could not convert units of LAS-channel '%1' from '%2' to '%3'" ).arg( lasAddress ).arg( lasUnits ).arg( extractorUnits );
|
||||
RiaLogging::error( errMsg );
|
||||
RiaLogging::error( errMsg.toStdString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ void RimWellLogFileDataLoader::loadData( caf::PdmObject& pdmObject, const QStrin
|
||||
QString errorMessage;
|
||||
if ( !wellLogFile->readFile( &errorMessage ) )
|
||||
{
|
||||
RiaLogging::warning( errorMessage );
|
||||
RiaLogging::warning( errorMessage.toStdString() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,8 @@ bool RimWellLogLasFile::readFile( QString* errorMessage )
|
||||
{
|
||||
RiaLogging::warning( QString( "The LAS-file '%1' contains no recognizable date. Please assign a date in the "
|
||||
"LAS-file property panel." )
|
||||
.arg( m_name() ) );
|
||||
.arg( m_name() )
|
||||
.toStdString() );
|
||||
|
||||
m_date = DEFAULT_DATE_TIME;
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ void RimWellLogLasFileCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
{
|
||||
QString tmp = QString( "The LAS curve can not be displayed.\n%1\n" ).arg( errMsg );
|
||||
|
||||
RiaLogging::warning( tmp );
|
||||
RiaLogging::warning( tmp.toStdString() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2790,7 +2790,8 @@ void RimWellLogTrack::updateResultPropertyNamesOnPlot()
|
||||
.arg( m_description() )
|
||||
.arg( m_resultDefinition->resultVariable() )
|
||||
.arg( resultTypeStr )
|
||||
.arg( eclipseCase->caseUserDescription() ) );
|
||||
.arg( eclipseCase->caseUserDescription() )
|
||||
.toStdString() );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user