summaryrefslogtreecommitdiff
path: root/lib/gitlab_logger.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge branch 'sh-bump-ruby-version' into 'master'"Douwe Maan2018-12-131-2/+3
| | | This reverts merge request !257
* Upgrade to Ruby 2.5.3Stan Hu2018-12-131-3/+2
|
* Fix newlines not appearing between new log entriessh-fix-nonatomic-putsStan Hu2018-09-111-2/+3
| | | | | | | | | | | | | | | In https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/5017, we observed that lots of log messages were being dropped by Fluentd due to missing newlines. This occurs because there is a bug in Ruby where IO#puts calls write() twice: once to write the main text, and another to write the newline (https://bugs.ruby-lang.org/issues/14042). In a highly concurrent environment like GitLab.com, this can lead to interleaved newlines. A workaround is to use `IO#print` and append the newline ourselves. Closes https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/5017
* Add missing GitlabLogger#error methodJacob Vosmaer (GitLab)2018-04-091-1/+6
|
* Flush log file after every writeJacob Vosmaer (GitLab)2018-03-231-0/+6
|
* Switch to structured loggingJacob Vosmaer (GitLab)2018-03-191-2/+94
|
* Update files to pass modern rubocop checks. Disable some of themdz-update-depsDmitriy Zaporozhets2018-02-221-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add the logger and related configuration options.ash2013-05-161-0/+16