Commit Graph

7 Commits

Author SHA1 Message Date
nabbar
eb8097fad8 Fix local path operations by using a wrong package (diff between package path and path/filepath)
Bump dependencies
2022-11-15 14:37:49 +01:00
Nicolas JUHEL
f015ad5283 PKG Logger :
- fix issue #109
- fix issue #106
- fix bug with color linux / win
- fix bug with color between std, file and syslog
- fix using default logger instead of setup logger
- fix logrus logger level
- add debug message to test logger (test-httpserver)

PKG httpserver :
- apply logger's changes
- optimize httpserver shutdown process

PKG httpcli :
- add new params for log error / log check

PKG ldap :
- add new params for log error / log check
2021-06-17 14:10:30 +02:00
Nicolas JUHEL
395995fcff Test httpserver: update logger for color + some errors 2021-06-04 16:48:30 +02:00
Nicolas JUHEL
c127359ffb - Remove logger as globals to use dedicated pointer (#104)
# Refactor Logger :
- Remove logger as globals to use dedicated pointer
- Add compat file to allow retro-compatibility (function are deprecated)
- Add field management to allow add custom information
- Add option struct to manage options
- Add entry struct to manage all log entry
- Add multithreading capabilities (with race prevention)
- Allow to log to file + stdout/stderr + syslog
- Add io.WriteCloser compatibility interface
- Add logrus hook to manage option by hook instance
- Add capabilities to custom each logfile/syslog/standard independently
- Add small test suite

# Update Packages for logger new options : 
- archive
- cluster
- context
- httpcli
- httpserver
- ldap
- tests

# Other : 
- bump dependancies
- update minio server for aws test
2021-05-21 17:32:47 +02:00
Nicolas JUHEL
e457f641d2 - Pkg HTTP Server : add config option to disabled a server
- Pkg HTTP Server : add option to force TLS as mandatory to start and server
- Pkg HTTP Server : add function to listen server with multiple handler (map[key string]http.handler)
- Pkg HTTP Server : add option to define an handler key to associate one server with one handler
2021-03-04 11:14:31 +01:00
Nicolas JUHEL
18f02cd55d Add example for httpserver 2021-02-25 11:43:01 +01:00
Nicolas JUHEL
11c1a32093 issue #84: Fix race condition 2021-02-25 11:42:34 +01:00