{
private final ChatHomeService chatHomeService;
private final StorageStrategy storageStrategy;
+ private final String loggingCategory = ChatBackendController.class.getSimpleName();
private final Level loggingLevel;
private final boolean showOperatorLine;
return chatRoomData
.listen()
.log(
- ChatBackendController.class.getSimpleName(),
+ loggingCategory,
loggingLevel,
showOperatorLine)
.map(message -> MessageTo.from(message))
private final Path storagePath;
private final ShardingStrategy shardingStrategy;
private final ObjectMapper mapper;
+ private final String loggingCategory = FilesStorageStrategy.class.getSimpleName();
private final Level loggingLevel;
private final boolean showOperatorLine;
return chatRoomInfoFlux
.log(
- FilesStorageStrategy.class.getSimpleName(),
+ loggingCategory,
loggingLevel,
showOperatorLine)
.doFirst(() ->
return Flux
.from(new JsonFilePublisher<ChatRoomInfoTo>(chatroomsPath(), mapper, type))
.log(
- FilesStorageStrategy.class.getSimpleName(),
+ loggingCategory,
loggingLevel,
showOperatorLine)
.map(chatRoomInfoTo ->
return messageFlux
.log(
- FilesStorageStrategy.class.getSimpleName(),
+ loggingCategory,
loggingLevel,
showOperatorLine)
.doFirst(() ->
return Flux
.from(new JsonFilePublisher<MessageTo>(chatroomPath(chatRoomId), mapper, type))
.log(
- FilesStorageStrategy.class.getSimpleName(),
+ loggingCategory,
loggingLevel,
showOperatorLine)
.map(MessageTo::toMessage);