Faissal Elamraoui
e39dc9fb7f
#323 : Removes the check if the current path is a Beego project
2016-11-21 15:23:08 +01:00
Faissal Elamraoui
ac935ad4e0
Merge pull request #321 from r0nni3/r0nni3-patch-isnull-filter
...
isnull filter needs boolean value for the Filter function
2016-11-20 22:42:54 +01:00
Faissal Elamraoui
eac9dc25d3
Merge pull request #319 from amrfaissal/fix-debug-log
...
Fixes debug log message
2016-11-18 22:02:38 +01:00
Ronnie A. Baez Sesto
fb93677604
isnull filter needs boolean value for the Filter function
...
With changes suggested by @amrfaissal
2016-11-16 16:39:54 -04:00
Faissal Elamraoui
6b27ef186a
This makes the logger instance a singleton
2016-11-16 12:33:01 +01:00
Faissal Elamraoui
21fc177551
Acquire lock when logging
2016-11-15 12:25:37 +01:00
Faissal Elamraoui
deacdaa667
Fixes the filename and lineNo in debug log message
2016-11-14 18:05:34 +01:00
astaxie
9aaade6cbb
Merge pull request #318 from hcrgm/patch-1
...
Swagger: parse @LicenseUrl first
2016-11-14 21:10:07 +08:00
hcrgm
63b5a81104
Update g_docs.go
2016-11-14 19:07:22 +08:00
astaxie
c3c264ddb5
Merge pull request #317 from amrfaissal/centralized-logging
...
New logging infrastructure for Bee
2016-11-14 09:24:44 +08:00
Faissal Elamraoui
cf7aef47f0
Implementing the new logging infrastructure
...
Moved logging to the new logging infrastructure by removing the use of
ColorLog() function. Added more documentation. Also fixed some typos in
comments and function names.
2016-11-13 15:14:48 +01:00
Faissal Elamraoui
0e54238559
Included leading zeros for the log record ID
2016-11-13 15:06:34 +01:00
Faissal Elamraoui
cb47cd011c
Moved all utility functions to one place
2016-11-13 14:12:38 +01:00
Faissal Elamraoui
af8e06cd53
Added more helper functions to output colored text
2016-11-13 14:10:11 +01:00
Faissal Elamraoui
b4e13b5529
Logging infrastructure for Bee
...
logger.go implements the logging infrastructure for Bee.
The end user can set the preferred backend (that implements io.Writer).
It supports multiple logging levels, and logs are sent to the output
colored based on each level. Debug logs are treated differently, i.e.
they will be sent to the output unless DEBUG_ENABLED is set to "1".
2016-11-13 13:46:32 +01:00
astaxie
04c0f9d7b4
output error
2016-11-10 16:51:50 +08:00
astaxie
f7001294a9
fix #312
2016-11-09 20:17:55 +08:00
astaxie
a3c1d42dab
Merge pull request #305 from xiaoqiang0/develop
...
Swagger: support default value columns for @Param
2016-11-07 22:47:16 +08:00
astaxie
dcc0fb67d2
Merge pull request #306 from amrfaissal/rewrite-load-conf
...
Rewrite configuration loading
2016-11-07 22:45:17 +08:00
Faissal Elamraoui
440c5e967c
Rewrite configuration loading
...
Rewrited loadConfig() function to walk the project directory
looking for bee.json and Beefile. If no configuration file
found, it fallbacks to the default configuration. In case
of an error, a log message is printed to the console.
2016-11-03 16:48:09 +01:00
Zhang Qiang
3199a019d7
Swagger: support default value columns for @Param
...
This patch support default value after 'type' column if total
columns is six.
This enhancement also is compatiable with old five columns.
2016-11-03 23:18:05 +08:00
astaxie
4ff3cf5ce8
Merge pull request #303 from Lao-liu/develop
...
Update hprose 2.0
2016-11-01 19:50:59 +08:00
Laoliu
0ccc6306b7
Update hprose 2.0
2016-11-01 18:59:32 +08:00
astaxie
50fafd72e8
Merge pull request #296 from amrfaissal/fix-goversion
...
Fix GoVersion value
2016-10-24 10:20:35 +08:00
Faissal Elamraoui
5cc09e5c6c
This fixes #295
2016-10-22 15:44:22 +02:00
astaxie
1d8aa1a48d
Merge pull request #292 from ihippik/patch-4
...
Default values in structure
2016-10-11 10:16:51 +08:00
Konstantin
7c7e75435c
Update g_docs.go
2016-10-10 19:49:33 +03:00
Konstantin
e8f85a57c2
Add types error handler (log)
...
the usual warning not panic
2016-10-10 17:36:51 +03:00
Konstantin
31406ebe5a
Default values in structure
...
Swagger default value for golang stucture.
format:
doc:"default(my_defaul_value)"
type MyStruct struct {
Template string `json:"template" doc:"default(<h1>Hello, {{ name }}! </h1>)"`
Name string `json:"name"`
MyNumber int64 `json:"temp" doc:"default(10)"`
MyBool bool `json:"bl" doc:"default(true)"`
MyFloat float64 `json:"fl" doc:"default(12.1234)"`
}
2016-10-08 11:35:26 +03:00
astaxie
244e9ccdc9
Merge pull request #286 from sergeylanzman/swagger-support-multi-package
...
Swaager - add support multi package with golang way myPackage.struct
2016-09-28 07:44:55 +08:00
Sergey Lanzman
d93e9a4271
Update g_docs.go
2016-09-27 18:20:01 +03:00
astaxie
178e74db40
Merge pull request #287 from amrfaissal/fix-multiple-main
...
Fix & Tweaks
2016-09-27 10:04:17 +08:00
Faissal Elamraoui
56568f4d2c
tweak: Exit with message instead of a panic
...
In case no application is found in GOPATH(s), exit with a friendly
message instead of a panic. Also removed useless else block in watch.go.
2016-09-26 20:32:14 +02:00
Faissal Elamraoui
287af20d1a
fix: This fixes #247
...
Moved isBeegoProject(app) method from pack.go to util.go. Rewrite it
to walk the application folder tree looking for main files.
2016-09-26 20:25:15 +02:00
Sergey Lanzman
4ebf7eab65
add support multi package with gaoling way myPackage.struct
2016-09-25 01:34:26 +03:00
astaxie
f7d2e04e07
change to 1.5.2
2016-09-22 23:12:55 +08:00
astaxie
b368f2b16a
Merge branch 'master' into develop
2016-09-22 23:12:06 +08:00
astaxie
29c9e1bab7
fix the map type generate
2016-09-22 23:04:58 +08:00
astaxie
205428abce
fix the licence issue
2016-09-22 22:26:39 +08:00
astaxie
9e856ecb33
Merge pull request #284 from filiphaftek/master
...
Fix incorrect generation of postgres table id type
2016-09-18 09:07:37 +08:00
Filip
465115c28e
Fix incorrect generation of postgres table id type
2016-09-17 21:54:00 +02:00
astaxie
8191997cbf
Merge pull request #282 from oter/develop
...
Fix .exe postfix issue on Windows platform.
2016-09-16 10:47:51 +08:00
OTER
b282761292
Fix .exe postfix issue on Windows platform.
2016-09-15 22:40:03 +03:00
astaxie
77f3b13fc3
Merge pull request #281 from sergeylanzman/develop
...
Improve swagger
2016-09-15 08:57:24 +08:00
Sergey Lanzman
1b75ccb9fe
Improve swagger (Main params,yaml
2016-09-15 00:09:54 +03:00
Sergey Lanzman
6189e101c9
Merge pull request #4 from beego/develop
...
Develop update
2016-09-14 22:59:52 +03:00
astaxie
e296e96e70
Merge pull request #276 from ZetaChow/develop
...
Develop
2016-09-09 15:52:22 +08:00
ZetaChow
0d0bea81bf
去掉offset(int64)赋0值,去掉query (map[...]...)定义,以符合Lint
2016-09-09 15:38:44 +08:00
ZetaChow
411aa43080
修改PUT和Get One 错误的注释
2016-09-09 15:27:36 +08:00
ZetaChow
ad34b7be2a
修改函数注释,以符合Lint规范
2016-09-09 15:20:59 +08:00