Commit Graph

143 Commits

Author SHA1 Message Date
wanna
9b2497bc57 Merge branch 'develop-up' into develop
* develop-up: (38 commits)
  revert gerror usage for package gvalid
  unify error package to gerror
  add CtxStrict feature for package gdb
  rename constants of package gpage from skake to upper camel case
  add context for intlog
  improve Record/Result converting for package gdb
  add context for intlog/gsession;improve struct/structs converting for package gconv
  unify command or enviroment key names for packages
  improve details for package glog
  add file configuration support for logger in ghttp.Server
  version updates
  add more unit testing cases for package ghttp
  add automatic fields mapping and filtering for Model.Where statements
  improve Order feature for package gdb
  improve function Increment/Decrement for package gdb
  add auto fields filtering feature for function Scan of package gdb; mark funtcion Struct/Structs deprecated for gdb.Model
  improve record converting for package gdb
  improve transaction feature for package gdb
  improve caller path filtering for package gdebug
  improve caller path filtering for package gdebug
  ...

# Conflicts:
#	os/glog/glog_logger.go
#	os/glog/glog_logger_config.go
#	os/glog/glog_logger_level.go
2021-07-14 21:12:18 +08:00
wanna
84aa30d9c2 允许日志文件中添加颜色 2021-07-13 22:45:35 +08:00
wanna
bc724deb5e 日志内容区分文件和控制台输出 2021-07-13 21:43:07 +08:00
wanna
bfdeb6c4f5 log color兼容win环境 2021-06-29 21:05:46 +08:00
wanna
03928f1977 add logging level prefix with color or not config 2021-06-28 00:58:35 +08:00
wanna
a2771c7558 format code 2021-06-28 00:23:25 +08:00
wanna
968e1db94d add log level prefix color 2021-06-28 00:00:44 +08:00
John Guo
d109706ad3 unify error package to gerror 2021-06-26 18:34:26 +08:00
John Guo
50ffaef33f add context for intlog/gsession;improve struct/structs converting for package gconv 2021-06-26 16:23:54 +08:00
John Guo
c25f88293b unify command or enviroment key names for packages 2021-06-26 12:08:18 +08:00
John Guo
025cdd66c5 improve details for package glog 2021-06-26 11:25:54 +08:00
John Guo
237f172ae5 add file configuration support for logger in ghttp.Server 2021-06-26 11:18:44 +08:00
John Guo
7c4a0453b7 improve handler feature for package glog 2021-06-08 21:35:54 +08:00
John Guo
702a296258 improve handler feature for package glog 2021-06-02 09:53:08 +08:00
John Guo
c3c5414ce2 add custom handler feature 2021-06-02 09:42:27 +08:00
John Guo
4e41d8aff8 improve context and nested transaction feature for package gdb 2021-05-21 13:25:53 +08:00
John Guo
6f1340ce36 upgrade otel from v0.18.0 to v0.19.0 2021-03-29 16:00:56 +08:00
jianchenma
813841bb68 rename GetWithEnv to GetOptWithEnv for packge gcmd 2021-02-02 15:16:09 +08:00
jianchenma
4c6d9f5eff improve tracing feture for package glog/gdb/gredis 2021-01-26 01:19:55 +08:00
jianchenma
e1418a2caa fix blocking issue in roration feature for package glog 2021-01-19 16:44:37 +08:00
John Guo
093034acd1 copyright comment update 2021-01-17 21:46:25 +08:00
John Guo
a9aa021914 add json tag for configuration struct for package gdb/gredis/ghttp/glog/gview 2021-01-12 00:42:33 +08:00
jflyfox
b12c909fd6 add logging level configuration for package ghttp 2021-01-06 01:00:49 +08:00
John Guo
4991e14dff improve error message when failed in Mkdir 2021-01-03 12:05:04 +08:00
jflyfox
edc56949b7 improve package glog for rotation feature 2020-12-15 13:03:12 +08:00
jflyfox
102e2d07d9 improve package gcfg for automatic configuration file type checks; change const variables for package gcfg/glog/gtimer/gmode/gins/gi18n 2020-12-14 13:02:08 +08:00
John Guo
363f6eba44 remove automatic stack content printing for error that has stack infomation 2020-12-11 01:12:53 +08:00
jflyfox
e9d346ce4f improve package glog 2020-12-09 13:54:27 +08:00
jflyfox
4b91e709f7 Merge branch 'master' of https://github.com/gogf/gf into develop 2020-12-09 13:48:50 +08:00
prcseraph
278e85357d * 日志根据大小切片时,文件重命名读写冲突。 2020-12-08 18:54:42 +08:00
John Guo
d2b65f0f91 add gcmd.GetWithEnv/genv.GetWithCmd; remove package cmdenv; 2020-12-04 23:44:54 +08:00
John
ecaf0da228 improve package glog; add more unit testing case for package gmlock 2020-12-02 21:33:07 +08:00
John
cabf684ec9 add context feature for package gdb 2020-11-29 23:47:57 +08:00
John
df86ffb61e improve package glog for nil file pointer 2020-11-19 20:43:44 +08:00
John
68cc85f2b2 improve file extension handling for package glog 2020-11-12 18:38:58 +08:00
John
8c12bc5506 change panic to internal logging for package glog 2020-09-01 21:22:19 +08:00
Jack
27dd15b403 improve initialization for logger of package glog 2020-08-26 14:37:02 +08:00
Jack
6d68277db8 improve cookie feature for ghttp.Server 2020-08-03 20:00:00 +08:00
Jack
f7a9be4292 improve package glog for rotation feature 2020-07-30 21:09:45 +08:00
Jack
ff5dab5c70 improve package glog for rotation feature 2020-07-30 20:49:11 +08:00
Jack
253b124903 fix issue in database configuration for package gind 2020-07-30 20:18:18 +08:00
john
5be30b3684 fix issue in logging file rotation 2020-07-20 21:32:28 +08:00
muyakongali
edc67d9ec3 bug/log-file-rotate: fix big file even with rotate-by-size and rotate-back-expire 2020-07-17 10:39:14 +08:00
wnstar
b7686d6d37 log added function name display 2020-06-22 11:04:57 +08:00
John
b83f1efde8 remove panic for stdout error for package glog 2020-06-15 22:57:27 +08:00
John
f33753e0cd add example for package ghttp/glog 2020-06-08 20:21:35 +08:00
John
22ecf4f1b6 add context feature for package glog 2020-05-08 17:12:37 +08:00
John
362e380ada improve SetConfigWithMap function for package ghttp/glog/gview; reveal some logger functions for default logger of package glog 2020-04-15 11:04:39 +08:00
John
f22da4ba3a improve gconv.MapDeep with anonymous checks for attribute struct field 2020-04-09 15:34:23 +08:00
John
7e0fa8e0cd improve package garray 2020-03-30 20:31:47 +08:00
John
bd2e51ddca improve unit testing case for package glog 2020-03-28 00:47:34 +08:00
John
ddcb7121c1 improve temporary path producing from gfile.Join to gfile.TempDir 2020-03-28 00:41:12 +08:00
John
f1f575fd5c improve package gins/gfile/intlog 2020-03-28 00:37:23 +08:00
John
99adb7cdc4 comment update 2020-03-26 23:48:21 +08:00
John
6b7ea97777 improve quote handling of table string for package gdb; improve rotation feature for package glog 2020-03-26 22:25:43 +08:00
John
495b5758ec improve quote handling of table string for package gdb; improve rotation feature for package glog 2020-03-26 22:22:27 +08:00
John
ba56eb87b1 improve rotation feature for package glog 2020-03-26 20:58:57 +08:00
John
4258a3bbc9 improve StrToSize function for package gfile 2020-03-26 15:54:57 +08:00
John
4912331ddc improve mtime feature for gfile; improve rotation feature for glog 2020-03-26 09:29:36 +08:00
John
23bce7bde6 reduce the goroutine count for unit testing cases of package gfpool/glog 2020-03-25 23:49:33 +08:00
John
926b664615 improve package garray for crossing border handling; improve rotation feature for package glog 2020-03-25 23:36:56 +08:00
John
0389778725 improve package glog for file lock 2020-03-25 00:03:52 +08:00
John
75054ee109 fix issue in rebinding feature for grou router of ghttp.Server 2020-03-24 19:48:10 +08:00
John
8447b1a42b add function LevelStr/StackWithFilter functions for package glog 2020-03-24 00:05:11 +08:00
John
e5265a1c46 add level string feature for package glog 2020-03-23 22:40:44 +08:00
John
6e8ef8d0b0 add level string feature for package glog 2020-03-23 22:36:06 +08:00
John
0b6d04485e improve unit testing cases 2020-03-19 22:56:12 +08:00
John
2b46e765c4 change function time.Duration.Milliseconds to time.Duration.Nanoseconds for compatibility of Golang version < 1.13 2020-03-16 23:03:37 +08:00
John
c7f911cae2 change function time.Duration.Milliseconds to time.Duration.Nanoseconds for compatibility of Golang version < 1.13 2020-03-16 23:03:35 +08:00
John
74be9fac18 add file rotation feature for package glog; improve gpool/gfpool; fix issue in gfile.MTimeMillisecond 2020-03-15 19:32:26 +08:00
John
0a92df691b improve package gpool/gfpool; donator updates 2020-03-14 17:12:44 +08:00
John
bb1c27c36a add more unit testing cases for glog 2020-02-26 23:26:24 +08:00
John
42fd583bfd add more inernal logging points for core components 2020-02-24 21:09:19 +08:00
John
19755ad233 improve gcfg 2020-02-14 21:57:35 +08:00
John
202419202f improve logger feautre, add unit testing cases for ghttp.Server; add SetDefaultLogger function for glog 2020-01-21 15:42:08 +08:00
John
be15f85eae remove sql.ErrNoRows error for select functions for gdb; improve configuration feature for gdb/glog/gview 2019-12-04 16:04:52 +08:00
John
40570cdb03 change logger configuration name from 'logging' to 'logger' in gins 2019-12-02 19:55:45 +08:00
John
43531c2680 improve glog for debug configuration; add GetInt*/GetUint* functions for ghttp.Request 2019-11-19 17:26:06 +08:00
John
635f5d36fd improve log feature of ghttp.Server; remove trace for Notice/Warning functions for glog 2019-11-15 22:50:31 +08:00
John
0e62510c6f improve configuration feature, add instance feature for package glog; add package guuid for UUID feature 2019-11-06 20:22:20 +08:00
John
dcb74ee9df comment update 2019-11-01 20:36:09 +08:00
John
e9ace9b17a update comment for grpool/glog 2019-10-28 17:16:50 +08:00
John
f1b7cb37c6 add configuration feature for glog 2019-10-26 10:58:07 +08:00
John
62f66b4fec remove unnecessary stack trace of gf for stack printing 2019-09-19 13:13:39 +08:00
John
0d5dfe59b9 remove deprecated functions 2019-09-06 16:44:40 +08:00
John
cd00ac446b improve CORS feature for ghttp.Server 2019-09-03 17:18:16 +08:00
John
b7f67e3162 add StackWithFilter function for glog, and improve gdb/ghttp 2019-08-26 20:09:24 +08:00
John
1a20edc0b0 improving gdb and glog 2019-08-26 19:39:04 +08:00
John
f80ba1473e fix issue in stack skip feature for glog; fix issue in slice parameter for gdb 2019-08-24 23:08:17 +08:00
john
fda345577a add package gdebug; improve gconv/gfile/gset 2019-08-09 20:05:36 +08:00
john
3af3fd1428 fix issue in gset.Pop; improve internal/debug 2019-08-09 09:51:52 +08:00
John
7172ae0232 fix issue in invalid error stacks for glog; improve internal/debug and gutil for stack printing 2019-08-08 22:58:49 +08:00
John
b01add2925 update project structure 2019-07-29 21:01:19 +08:00