Commit Graph

6 Commits

Author SHA1 Message Date
nabbar
52f0d6fa04 Config Component :
- Change reloading component method : try to reload all component and store errors, report list of errors but don't break the reloading process

Package Logger :
- Fix bug with entry logger filtering

Package Viper:
- reword message log before reloading config file (watchFS)
- add message log after reloading config file (watchFS)

Package Status :
- Fix DATA Race with status/info
- Add component key into log error message for health
- Add component key into function to use it into info (name)
- Reword health message : no OK/KO (still into status info), add error message reporting

Package httpserver :
- status info : apply update status component, use key in name
- status info : optimize code

Package Request :
- Fix error in url path operation
- Status info : optimize code
- Status info : apply update component, add endpoint hostname with name

Package Static :
- apply status component update

Other :
- Bump dependencies
2022-11-17 16:54:51 +01:00
nabbar
3402a00f21 Package Status :
- optimize output writer block for Get function
- add query string params online to print all result as one line plain text format

Package logger :
- refactor closer function to specific interface
- refactor syslog linux to log message by severity instead of same severity for all message

Other :
- Bump dependencies
2022-11-10 15:11:23 +01:00
Nicolas JUHEL
c9db0074bc Package Logger :
Add function to log minimalist information and access log (latency, size remote info, ...)
    Add option to transform (exclusif) logger as access logger
    fix errors & optimize

Package Router :
    Update methode to start gin engine with access / error logger from package logger
    fix error into middleware logger
    use specif middleware for starttime and request path
    optimize

Package ioutils :
    fix tools : missing control path still existing to prevent truncate destination file
    fix tools : ignore chmod error (not mandatory if file can be create/append)

Package Prometheus :
    use generic starttime into context if available

Bump Dependencies
2022-10-20 11:52:58 +02:00
Nicolas JUHEL
00a825bea5 Fix logger :
- issue #106
- fix bug with color linux / win
- fix bug with color between std, file and syslog
2021-06-07 13:53:15 +02:00
Nicolas JUHEL
54a72a23a5 Update logger for pkg nutsDb + cluster (#105)
# Package NutsDB 
- Implement new logger into NutsDB package
- Optimize concurrent work for package NutsDB

# Package Cluster
- Change logger into cluster 
- Change SetLoggerFactory : no more init call

# Package Logger
- Fix error into logger with logrus logger dup : level not included in dup function
2021-05-26 11:03:44 +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