Skip to content

Commit

Permalink
SILKit-1644: Clean ILoggerInternal interface
Browse files Browse the repository at this point in the history
  • Loading branch information
VLukasBecker authored Dec 10, 2024
1 parent 3a517c3 commit fa6070a
Show file tree
Hide file tree
Showing 58 changed files with 378 additions and 298 deletions.
3 changes: 1 addition & 2 deletions SilKit/source/core/participant/Participant_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "SystemMonitor.hpp"
#include "LogMsgSender.hpp"
#include "LogMsgReceiver.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "StructuredLoggingKeys.hpp"
#include "TimeProvider.hpp"
#include "TimeSyncService.hpp"
Expand Down Expand Up @@ -70,7 +70,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "Assert.hpp"
#include "ExecutionEnvironment.hpp"

#include "ILoggerInternal.hpp"


namespace SilKit {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/requests/procs/ParticipantReplies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "ParticipantReplies.hpp"

#include "silkit/participant/exception.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

namespace SilKit {
namespace Core {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/ConnectKnownParticipants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "ConnectKnownParticipants.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "VAsioConnection.hpp"
#include "VAsioPeer.hpp"
#include "util/TracingMacros.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/ConnectPeer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "IIoContext.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <chrono>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/SilKitLink.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#pragma once

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include "VAsioTransmitter.hpp"
#include "traits/SilKitMsgTraits.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/Test_VAsioConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "SerializedMessage.hpp"
#include "TimeProvider.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <chrono>

Expand Down
3 changes: 2 additions & 1 deletion SilKit/source/core/vasio/VAsioConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include <cctype>
#include <map>

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include "VAsioConstants.hpp"
#include "VAsioPeer.hpp"
#include "VAsioProxyPeer.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/VAsioConnection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "ProtocolVersion.hpp"
#include "SerializedMessage.hpp"
#include "Assert.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "VAsioCapabilities.hpp"
#include "WireLinMessages.hpp"
#include "Uri.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/VAsioPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include <sstream>
#include <thread>

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "VAsioMsgKind.hpp"
#include "VAsioConnection.hpp"
#include "Uri.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/VAsioReceiver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "MessageTracing.hpp"
#include "IServiceEndpoint.hpp"
#include "SerializedMessage.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

namespace SilKit {
namespace Core {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/VAsioRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include "Logger.hpp"
#include "Uri.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "Optional.hpp"
#include "TransformAcceptorUris.hpp"
#include "VAsioConstants.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/io/IIoContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "IConnector.hpp"
#include "ITimer.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <functional>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/io/MakeAsioIoContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "IIoContext.hpp"
#include "AsioSocketOptions.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/io/impl/AsioAcceptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "util/Exceptions.hpp"
#include "util/TracingMacros.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/io/impl/AsioConnector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "util/Exceptions.hpp"
#include "util/TracingMacros.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <memory>
#include <mutex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "AsioSocketOptions.hpp"
#include "util/Atomic.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <memory>
#include <mutex>
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/io/impl/AsioIoContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "MakeAsioIoContext.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include "asio.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/io/impl/SetAsioSocketOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "SetAsioSocketOptions.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"


namespace {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/core/vasio/io/util/TracingMacros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once


#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include <algorithm>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include "DashboardSystemServiceClient.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include OATPP_CODEGEN_BEGIN(ApiClient)

Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/dashboard/DashboardInstance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "IDashboardInstance.hpp"
#include "VAsioRegistry.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include "silkit/config/IParticipantConfiguration.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/dashboard/DashboardParticipant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include "silkit/SilKit.hpp"
#include "silkit/config/IParticipantConfiguration.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "IParticipantInternal.hpp"
#include "IServiceDiscovery.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include <chrono>

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "SetThreadName.hpp"

namespace SilKit {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/dashboard/Service/SilKitEventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#include "SilKitEventHandler.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "silkit/services/orchestration/string_utils.hpp"
#include "silkit/SilKit.hpp"
#include "Uri.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "NetworkSimulatorDatatypesInternal.hpp"
#include "silkit/experimental/netsim/string_utils.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "procs/IParticipantReplies.hpp"

namespace SilKit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "IParticipantInternal.hpp"
#include "IServiceDiscovery.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

#include "SimulatedNetworkRouter.hpp"
#include "SimulatedNetworkInternal.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <unordered_map>

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "SimulatedNetworkRouter.hpp"
#include "silkit/experimental/netsim/all.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "WireFlexrayMessages.hpp"
#include "WireLinMessages.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

namespace SilKit {
namespace Experimental {
Expand Down
3 changes: 2 additions & 1 deletion SilKit/source/services/can/CanController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "SimBehavior.hpp"

#include "SynchronizedHandlers.hpp"
#include "ILoggerInternal.hpp"

#include "LoggerMessage.hpp"

namespace SilKit {
namespace Services {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/services/ethernet/EthController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "SimBehavior.hpp"

#include "SynchronizedHandlers.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

namespace SilKit {
namespace Services {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/services/flexray/FlexrayController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "IServiceDiscovery.hpp"
#include "ServiceDatatypes.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

namespace SilKit {
namespace Services {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/services/lin/LinController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "ServiceDatatypes.hpp"
#include "Tracing.hpp"

#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"
#include "WireLinMessages.hpp"

namespace {
Expand Down
2 changes: 1 addition & 1 deletion SilKit/source/services/lin/LinController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "SimBehavior.hpp"
#include "SynchronizedHandlers.hpp"
#include "WireLinMessages.hpp"
#include "ILoggerInternal.hpp"
#include "LoggerMessage.hpp"

namespace SilKit {
namespace Services {
Expand Down
3 changes: 2 additions & 1 deletion SilKit/source/services/logging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ add_library(O_SilKit_Services_Logging OBJECT
Logger.cpp
#string formatting for SIL Kit types
SilKitFmtFormatters.hpp

LoggerMessage.hpp
LogFunctions.hpp
LoggingSerdes.hpp
LoggingSerdes.cpp
StructuredLoggingKeys.hpp
Expand Down
Loading

0 comments on commit fa6070a

Please sign in to comment.