src/Generic/common/SessionLogger.cpp
// This is the version that does the work for updateContext() and the other version of updateLocalContext().

This is the version that does the work for updateContext() and the other version of updateLocalContext().
This is the version that does the work for updateContext () and the other version of updateLocalContext () .
void SessionLogger::updateLocalContext(size_t context_level, const wchar_t *context_info) {
	size_t levels_defined = (_impl->context_level_names).size();
	if (levels_defined == 0) {
		return; 
	} else if (context_level >= levels_defined) {
		warn("bad_context_level_0") << "Ignoring attempt to update context level " << context_level
			<< "; only " << levels_defined << " levels are defined.";
	} else {
		_impl->context_info[context_level] = context_info;
		for (size_t i = context_level + 1; i < _impl->context_info.size(); i++)
			_impl->context_info[i].clear();
		_impl->context_displayed = false;
	}
}
void SessionLogger :: updateLocalContext ( size_t context_level , const wchar_t * context_info ) { size_t levels_defined = ( _impl -> context_level_names ) . size ( ) ; if ( levels_defined == 0 ) { return ; } else if ( context_level >= levels_defined ) { warn ( " " ) << " " << context_level << " " << levels_defined << " " ; } else { _impl -> context_info [ context_level ] = context_info ; for ( size_t i = context_level + 1 ; i < _impl -> context_info . size ( ) ; i ++ ) _impl -> context_info [ i ] . clear ( ) ; _impl -> context_displayed = false ; } }
This is the version that does the work for updateContext() and the other version of updateLocalContext().
This is the version that does the work for updateContext () and the other version of updateLocalContext () .
// for NullSessionLogger
 // erase information about all lower context levels
