- 添加 ANSI 颜色常量定义支持彩色输出 - 实现 stripAnsiColors 函数去除 ANSI 颜色码 - 创建 logWriter 结构体实现控制台带颜色文件无颜色的输出 - 修改初始化逻辑使用自定义 writer 替代 MultiWriter - 更新 Info、Error、Warn、Debug 函数添加时间戳和颜色前缀 - 将日志文件大小限制从 1MB 调整为 2MB - 移除默认日志标志位,使用自定义格式化输出 |
||
|---|---|---|
| autoMigrate | ||
| baseGrpc | ||
| db | ||
| excel | ||
| log | ||
| mqtt/client | ||
| pool | ||
| server | ||
| task | ||
| tcp | ||
| utils | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| go.mod | ||
| go.sum | ||
README.md
Copyright 2021 black1552
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.