如何设置log appender - kaa项目

How to set up log appender - kaa project

我正在尝试 "Your-first-Kaa-application",但我卡在了 "Set up log appender" 步骤。

http://kaaproject.github.io/kaa/docs/v0.10.0/Programming-guide/Key-platform-features/Data-collection/MongoDB-log-appender/

按照上面 link 的示例,他们使用 "host" 和 "port" 设置 mongoServers,如下文所示:

"mongoServers":[
    {
        "host":"127.0.0.1",
        "port":27017
    }

但是我不明白hostport的意思,而且在我的情况下(我自己的网络,我自己的电脑,我自己的kaa沙箱服务器...)

如何找到我系统的 hostport

请帮帮我!

谢谢!!

The MongoDB log appender is responsible for transferring logs from the Operations service to the MongoDB database.

所以这意味着你应该安装 MongoDB 和 运行 it.And 然后将你的 MongoDB 服务器 hostport 添加到配置中.