/*
   Copyright (c) 2018-2019 Nokia.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

/*
 * This source code is part of the near-RT RIC (RAN Intelligent Controller)
 * platform project (RICP).
*/

#include <ostream>
#include <sstream>
#include <string>
#include "private/abort.hpp"
#include "private/createlogger.hpp"

using namespace shareddatalayer;

void shareddatalayer::logAndAbort(const std::string& file, int line, const std::string& message) noexcept
{
    std::ostringstream msg;
    msg << "SHAREDDATALAYER_ABORT, file " << file << ", line " << line << ": " << message;
    logErrorOnce(msg.str());
    abort();
}
