Logan/LoganSite/README.md
Logan Website provide a convenient way for developers to scan and search logs uploaded from App and Web.
More details?Logan:美团点评的开源移动端基础日志库
first, clone the repository
create .env.development file at root of LoganSite.
Specify environment variable API_BASE_URL to the location of server:
API_BASE_URL=http://location/to/your/server:port
then, Run commands below:
$ cd $LOGAN_SITE
$ npm install
$ npm run start
or
$ cd $LOGAN_SITE
$ yarn
$ yarn start
first, clone the repository.
modify the line 4 in LoganSite/src/common/api.js,
make BASE_URL variable point to the location of server:
const BASE_URL = "http://location/to/your/server:port"
then, Run commands below:
$ cd $LOGAN_SITE
$ npm install
$ npm run build
or
$ cd $LOGAN_SITE
$ yarn
$ yarn build
The Logan website provides browsing and retrieval capabilities for reported logs from clients (Android, iOS, and Web):
Facing the large number of logs stored on the client, traditional way of paging table with filter condition is difficult to use for developer to find useful information.Therefore, Logan designed a MiniMap component trying to solve this problem. This control has the following features:
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 is licensed under the MIT License - see the LICENSE file for details.