WebSlog
A simple WebSocket Server which forwards BepInEx log output to connected websocket clients
模組介紹 作者原文
WebSlog
A ProtoBuf powered WebSocket Log forwarder for BepInEx
This is a patcher time mod for BepInEx which provides a simple WebSocket Server that forward's
bepinex log messages to connected WebSockets on the local machine.
This is primarily intended to provide the ability to create alternative log display systems for bepinex.
WebSlog forwards messages over Websockets using protobuf-net, an implementation of Google's Protobuf.
The protobuf definition for log messages is as follows;
[ProtoContract]
public class LogEntry
{
[ProtoMember(1)]
public string Source { get; internal set; }
[ProtoMember(2)]
public string Level { get; internal set; }
[ProtoMember(3)]
public int LevelCode { get; internal set; }
[ProtoMember(4)]
public string Data { get; internal set; }
}
Change Log
3.0.2 / 3.0.3 / 3.0.4
- Update this description to fix formatting errors
3.0.1
- Update README.md with change log and protobuf definition
3.0.0
- Migrate to using Protobuf for websocket protocol
2.2.2
- Attempt to use Newtonsoft because Manual json is error prone and I'm stupid for trying it.
2.2.1
- Fix manual JSON setup
2.2.0
- Migrate off JsonUtility due to compatibility issues, implement simple manual JSON.
2.1.0
- Migrate to using JsonUtiliy
1.1.0
- Cache logs and forward cached logs to clients upon connect
1.0.0
- Initial Release
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: