eggjs / egg

🥚 Born to build better enterprise frameworks and apps with Node.js & Koa

Home Page:https://eggjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker启动后,日志只输出到应用启动的时候,后面的log全丢

AntiMoron opened this issue · comments

在此输入你需要反馈的 Bug 具体信息(Bug in Detail):

  1. 我做了什么:进到docker容器查看日志
    image

  2. 日志展示了什么:
    image

只输出到应用启动

  1. 我需要什么:
    3.1 egg框架logger现在怎么去解决
    3.2 支持接入其他logger的方法(如Winston、Pino等日志库)

可复现问题的仓库地址(Reproduction Repo)

null

Node 版本号:

14

Eggjs 版本号:

^3.1.6

相关插件名称与版本号(PlugIn and Name):

null

操作平台与版本号(Platform and Version):

CentOS

我的Dockerfile + npm启动脚本。一览

  1. 为了docker容器保活,我把daemon去掉
  2. 启动容器时候:docker --network="host" -v docker日志映射到容器外系统里的某个路径

image