Logan/LoganSite/README_CN.md
Logan 网站为开发者提供了 App 上报日志与 Web 上报日志的浏览、检索等功能,帮助开发者以直观的方式查看日志。
关于 Logan 想知道更多?Logan:美团点评的开源移动端基础日志库
首先,clone仓库到本地。
在LoganSite根目录下创建文件.env.development,并在其中指定API_BASE_URL环境变量指向:
API_BASE_URL=http://location/to/your/server:port
然后执行以下命令:
$ cd $LOGAN_SITE
$ npm install
$ npm run start
or
$ cd $LOGAN_SITE
$ yarn
$ yarn start
首先,clone仓库到本地。
将 LoganSite/src/common/api.js 中第四行
const BASE_URL = process.defineEnv.API_BASE_URL;
中 BASE_URL 指向的部分替换成后端服务部署的地址:
const BASE_URL = "http://location/to/your/server:port"
然后执行以下命令:
$ cd $LOGAN_SITE
$ npm install
$ npm run build
or
$ cd $LOGAN_SITE
$ yarn
$ yarn build
Logan 网站为来自客户端(Android、iOS以及Web前端)的上报日志提供了基础的浏览检索功能,具体包括:
由于端上存储的日志类型较多,数量较大,采取传统分页表格显示配合筛选条件查看的方式效率依旧很低。因此,Logan 特别在日志详情页设计了一种 MiniMap 控件。该控件具有以下特性:
LOGAN_SITE
├── src
│ ├── app.js
│ ├── app.scss
│ ├── app.test.js
│ ├── index.js
│ ├── store.js
│ ├── common // common components and global functions
│ │ ├── components
│ │ ├── adapter.js
│ │ ├── api.js
│ │ ├── color.js
│ │ ├── time.js
│ │ └── util.js
│ ├── consts // constants will use in this project
│ └── views
│ ├── components // page level components to reuse
│ │ ├── list-page
│ │ │ ├── components // block level components in page
│ │ │ ├── index.js
│ │ │ └── style.scss
│ │ └── log-detail-page
│ │ ├── components // block level components in page
│ │ ├── index.js
│ │ └── style.scss
│ ├── native-list
│ │ ├── index.js
│ │ └── redux
│ ├── native-log-detail
│ │ ├── index.js
│ │ └── redux
│ ├── web-detail
│ │ ├── index.js
│ │ └── redux
│ └── web-list
│ ├── index.js
│ └── redux
├── config // webpack configs
├── public
├── scripts // npm scripts
├── package.json
├── README.md
└── yarn.lock
Logan项目采用MIT许可协议 - 详细内容请查看LICENSE