Skip to content

[APP-108180] Update by merge v1.9.3 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 252 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
6137e6b
Fix typo in docs for New()
n10v Sep 2, 2017
774bb8e
Fix error formatting based on best practices from Code Review Comments
CodeLingoBot Feb 5, 2019
5e9b246
Add a CallerPrettyfier callback to the json formatter
dgsb Feb 27, 2019
cbce296
Merge pull request #909 from sirupsen/caller_prettyfier
dgsb Feb 27, 2019
ffec2f2
Add a CallerPrettyfier callback to the text formatter
dgsb Feb 27, 2019
fa3c1df
Merge pull request #911 from sirupsen/caller_prettyfier_text_formatter
dgsb Feb 27, 2019
5c2b39a
Remove debug trace
dgsb Mar 3, 2019
99a5172
Add and example for CallerPrettyfier
dgsb Mar 3, 2019
c9b4f5a
Merge pull request #913 from sirupsen/example_caller_prettyfier
dgsb Mar 3, 2019
b9d4514
fix ReportCaller race condition
georlav Mar 4, 2019
cf1b9fd
fix sync.Once usage instead of adding a mutex lock
dgsb Mar 6, 2019
d7b6bf5
Merge pull request #916 from sirupsen/fix_race_getcaller
dgsb Mar 6, 2019
131eba2
Merge pull request #901 from CodeLingoBot/rewrite
lavoiesl Mar 11, 2019
68e41f6
Add WithContext
tgwizard Mar 11, 2019
5bd5a31
Merge pull request #919 from tgwizard/entry-context
dgsb Mar 11, 2019
02141df
Add CHANGELOG for v1.4.0
tgwizard Mar 11, 2019
dae0fa8
Merge pull request #920 from sirupsen/changelog-v140
tgwizard Mar 11, 2019
1487633
Rewrite if-else-if-else to switch statements
sosiska Mar 13, 2019
d8e3add
Add hook to send logs to custom writer #678
bunyk Mar 15, 2019
470f2e0
Fix some test conditions
bunyk Mar 15, 2019
c88f8de
Add Bytes() method to Entry, and use it to avoid double type cast
bunyk Mar 18, 2019
c076594
Add Go 1.12 to Travis CI build matrix
ceh Mar 24, 2019
1115b87
Merge pull request #927 from ceh-forks/ci-go-1-12
dgsb Mar 27, 2019
10ff0d0
Got rid of IsTerminal call to reduce external dependencies
tandr Mar 26, 2019
7de3dd8
Removed golang.org/x/crypto refs
tandr Mar 26, 2019
41ee4dd
Moved moved unix-related parts into terminal
tandr Mar 26, 2019
5d8c3bf
Updated travis.yml
tandr Mar 27, 2019
787e519
Merge pull request #932 from tandr/drop-crypto-2
dgsb Mar 28, 2019
c49ef1d
Move terminal package
Mar 28, 2019
aefd7ec
Merge pull request #935 from pacmessica/move-terminal-pkg
lavoiesl Mar 28, 2019
7d700cd
Test more platforms
tandr Mar 28, 2019
38bc297
return new entry for Entry.WithContext
hrxu01 Mar 29, 2019
a6c0064
Merge pull request #941 from hrxu01/return_new_entry_for_Entry.WithCo…
tgwizard Mar 31, 2019
3e06420
Move files to main directory
tandr Apr 1, 2019
ede5b63
Make isTerminal un-exported
tandr Apr 1, 2019
6c615e1
remove field if val is empty string for func and file field in text f…
hrxu01 Apr 2, 2019
8fe117b
Merge pull request #943 from tandr/unexport-isterminal
dgsb Apr 2, 2019
717f2cc
Merge pull request #944 from hrxu01/remove_field_if_val_is_empty_for_…
dgsb Apr 2, 2019
ba0a156
Merge pull request #937 from tandr/test-travis-3-plat
dgsb Apr 2, 2019
8bdbc7b
Release 1.4.1
dgsb Apr 2, 2019
c1b6154
Fix solaris build
dgsb Apr 3, 2019
9b3cdde
Merge pull request #946 from sirupsen/solaris_build
dgsb Apr 3, 2019
5521996
Update x/sys/unix to fix AIX support
Apr 23, 2019
1a601d2
remove go 1.10 from ci build matrix
dgsb May 10, 2019
f0375eb
Merge pull request #961 from sirupsen/ci_build_matrix
dgsb May 10, 2019
0006e8c
Update README.md
Clivern May 10, 2019
1bc909a
Add a checkTerminal for nacl to support running on play.golang.org
nlepage May 14, 2019
f2849a8
add full cross compilation in travis (#963)
dgsb May 18, 2019
e0108d9
Merge pull request #966 from nlepage/feature/nacl
dgsb May 18, 2019
744fc4c
fix build break for plan9
dgsb May 18, 2019
cfb9d25
Merge pull request #969 from sirupsen/plan9_build
dgsb May 18, 2019
839c75f
Release 1.4.2
dgsb May 18, 2019
2a22dbe
Merge pull request #962 from Clivern/patch-1
dgsb May 18, 2019
b851829
tracking commit
Jun 5, 2019
23045ec
tracking commit
Jun 5, 2019
fa0d2a8
add implementation and tests
Jun 5, 2019
58f7e00
update comments
Jun 5, 2019
2d641d1
update the readme
Jun 5, 2019
691f1b6
add a space back
Jun 5, 2019
bef31a5
wording shift
Jun 5, 2019
b5cc19c
bump ci
Jun 5, 2019
693469d
dynamically space the level text
coilysiren Jun 25, 2019
8ba442a
init the loggers in tests
coilysiren Jun 25, 2019
dcce325
avoid escapes! h/t @therealplato
coilysiren Jun 27, 2019
af6ed96
len => RuneCount
coilysiren Jun 27, 2019
539b8af
its => it's
coilysiren Jun 28, 2019
07a84ee
Merge pull request #977 from lynncyrin/pad-option
dgsb Jul 1, 2019
d425762
Fixed ineffectual assignment in test
muesli Jul 20, 2019
0c8c93f
Avoid unnecessary conversion
muesli Jul 20, 2019
de736cf
readme: we have great maintainers now
sirupsen Aug 7, 2019
8b0b8a8
Merge remote-tracking branch 'upstream/master'
bunyk Sep 3, 2019
60320cb
return early
Sep 5, 2019
6cd8d68
some minimal documentation for Logger.Writer{,Level}
Sep 6, 2019
305ec52
Add terminal_check_js.go file, for compatibility with GopherJS
flimzy Sep 19, 2019
3f89e25
ReadMe.md file adds The Third Formatter link
Sep 29, 2019
6d03566
Fixed some typos in README.md
flowonyx Oct 4, 2019
0cb0485
add Go 1.13 in travis
psampaz Oct 11, 2019
107a185
Merge pull request #1037 from psampaz/travis_go_113
Oct 12, 2019
890ead5
Merge pull request #1034 from flowonyx/patch-1
Oct 12, 2019
e5e927c
Merge pull request #1032 from zput/ReadMeAddThirdFormatter
Oct 12, 2019
e33eea3
Merge pull request #1017 from freeformz/ffz/docWriter
Oct 12, 2019
9e05426
Merge pull request #990 from muesli/assign-fixes
Oct 12, 2019
0bbebc5
Merge pull request #1024 from flimzy/gopherjs
Oct 12, 2019
39a5ad1
Merge pull request #991 from muesli/conversion-fixes
Oct 12, 2019
7b6c0d1
Disable modules, run on osx
Oct 13, 2019
d30efdb
go mod verify; go mod tidy
Oct 13, 2019
8ec9a49
Enable all of these to see what fails
Oct 13, 2019
75440f2
get some other deps
Oct 13, 2019
ad9f41a
pull all the install into a single location
Oct 13, 2019
08cf62c
This should make gox a little nicer
Oct 14, 2019
68e6dbb
Exclude go1.13.x from modules off, only build all on go1.13 modules on
Oct 14, 2019
f9951cc
Associate this example with what it's an example for
Oct 14, 2019
46015a9
test the error to ensure there isn't an unexpected error in the test
Oct 14, 2019
d12cdc0
deadcode
Oct 14, 2019
843e0aa
Merge pull request #1016 from freeformz/ffz/returnEarly
Oct 14, 2019
fb62dbe
fix broken test
freeformz Oct 14, 2019
007cacd
Force Quote
freeformz Oct 15, 2019
b6a9e56
Merge pull request #1042 from sirupsen/ffz/ForceQuote
Oct 23, 2019
d5d4df1
Merge pull request #1040 from sirupsen/ffz/Travis
Oct 23, 2019
c7278b2
fix race conditions on entry
lwsanty Oct 23, 2019
b77b626
run golangci-lint on travis
Oct 25, 2019
88d4430
remove go1.11.x from travis build matrix
Oct 25, 2019
9df6f6a
add x rights on travis/lint.sh
Oct 25, 2019
12176f2
Merge pull request #1053 from sirupsen/travis_rm_go111
dgsb Oct 25, 2019
f4ece9c
Merge pull request #1052 from sirupsen/activate_linter
dgsb Oct 25, 2019
9746113
remove obsolete documentation
Oct 26, 2019
67a7fdc
Merge pull request #1054 from sirupsen/del_old_doc
dgsb Oct 26, 2019
4fd274e
improve Logger.WithField documentation
Oct 28, 2019
bcc146f
Fix entity data bleed when using WithContext and WithTime
taywrobel Nov 28, 2019
8fbaf3d
Make Entry WithContext and WithTime copy tests more clear
taywrobel Dec 3, 2019
28e2121
Add support for freebsd/arm64
dmgk Dec 9, 2019
b70d15e
Fix typo
hlcfan Dec 18, 2019
779e0e2
add caption-json-formatter
nolleh Jan 20, 2020
6895a36
Remove annoying punctuation in Readme for better screen reader access…
mikolysz Jan 28, 2020
9478311
Merge pull request #1094 from devil418/fix-readme
sirupsen Feb 4, 2020
4ecd9a6
readme: maintenance-mode
sirupsen Feb 25, 2020
63d9911
Merge pull request #1082 from hlcfan/patch-1
Feb 25, 2020
2f069dd
Merge pull request #1072 from taywrobel/bugfix/dataBleedAcrossEntities
markphelps Feb 25, 2020
eef122e
Create stale.yml
markphelps Feb 26, 2020
f5d95b6
Update stale.yml
markphelps Feb 26, 2020
24566a3
Merge pull request #924 from bunyk/master
lavoiesl Feb 26, 2020
494ec95
Only mark issues as stale for now until we go through backlog of PRs
markphelps Feb 26, 2020
7fab003
Merge pull request #633 from bogem/patch-1
markphelps Feb 26, 2020
77ab282
Merge pull request #1047 from lwsanty/fix-race-conditions-on-entry
markphelps Feb 26, 2020
86a84a9
Get right logrus package name
hlcfan Feb 27, 2020
ab4d0e6
run CI for go 1.13 and 1.14
Mar 3, 2020
1e936e2
Merge pull request #1091 from nolleh/master
markphelps Mar 4, 2020
334dd77
Merge pull request #1060 from sirupsen/improve_withfield_doc
markphelps Mar 4, 2020
53000c4
Merge pull request #921 from sosiska/patch-1
markphelps Mar 4, 2020
7ea96a3
Merge pull request #1102 from hlcfan/get-right-logrus-pkg-name
dgsb Mar 6, 2020
af6ac8c
Fix wrong caller
cirelli94 Mar 9, 2020
fa25593
Removed useless files
cirelli94 Mar 9, 2020
0882384
Title updates
Dattax Mar 12, 2020
0fb945b
resolved conflicts
davidraleigh Mar 13, 2020
e76a5c4
create test to prove issue sirupsen/logrus#954
admacleod Mar 19, 2020
b28acda
fix race condition in entry
admacleod Mar 19, 2020
ba670ba
fix deadlock in previous entry race condition fix
admacleod Mar 19, 2020
e3e4060
remove errant whitespace
admacleod Mar 19, 2020
4ddc9cf
Merge pull request #1116 from admacleod/master
markphelps Mar 22, 2020
a635f04
Merge pull request #1113 from davidraleigh/html-escape
markphelps Mar 22, 2020
ddb57a2
Merge pull request #1110 from Dattax/patch-1
markphelps Mar 22, 2020
32fd107
Merge pull request #1103 from sirupsen/fix-go114
markphelps Mar 22, 2020
d417be0
Merge pull request #1108 from cirelli94/fix-wrong-caller
markphelps Mar 22, 2020
7d248fa
Add loggers that take functions as input
Azer0s Apr 10, 2020
03155c5
Revert #1047
markphelps Apr 16, 2020
91ef3ab
Merge pull request #1131 from sirupsen/revert-1047
markphelps Apr 16, 2020
c7455de
Adds flag to disable quotes in TextFormatter
Apr 23, 2020
aff00fe
Adds additional test cases for DisableQuote
Apr 23, 2020
4989a3f
Change CRLF line endings to LF
ialidzhikov Apr 28, 2020
e79215d
update github.com/konsorten/go-windows-terminal-sequences dependency …
Apr 29, 2020
163c051
Merge pull request #1137 from sirupsen/fix_crash_windows
dgsb Apr 29, 2020
a5b0247
Merge pull request #1136 from ialidzhikov/nit/line-endings
dgsb Apr 29, 2020
4d96c60
Merge branch 'disable-quotes' of https://github.com/thlacroix/logrus …
Apr 29, 2020
0fd458a
complete documetation on TextFormatter.DisableQuote
Apr 29, 2020
e8e563a
Merge remote-tracking branch 'origin/master' into thlacroix-disable-q…
Apr 29, 2020
60c74ad
update CHANGELOG.md with 1.5.0 and 1.6.0 version contents
May 2, 2020
8665791
Simplify checkIfTerminal for Windows
tklauser Jan 12, 2020
0de04f1
Merge pull request #1088 from tklauser/simplify-windows
dgsb May 19, 2020
e8fa988
Merge pull request #1077 from dmgk/master
dgsb May 19, 2020
d7edea4
Merge branch 'feature/function-log' of https://github.com/Azer0s/logr…
dgsb May 19, 2020
ba4da53
Improve tests for logger.*Fn functions
dgsb May 19, 2020
20dcf91
Merge pull request #1142 from sirupsen/function-log
dgsb May 19, 2020
630ea45
Update doc for new logger
sohel-sheikh May 26, 2020
42baed8
Merge pull request #1144 from sohel-sheikh/patch-1
dgsb May 26, 2020
64a5944
Add an API to plug a custom buffer free item mangement system
May 28, 2020
6699a89
Merge pull request #1145 from sirupsen/custom_buffer_pool
dgsb May 28, 2020
c6b865f
update changelog with v1.7.0
shogo82148 Sep 29, 2020
d131c24
Merge pull request #1183 from shogo82148/update-changelog-1.7.0
dgsb Sep 30, 2020
c81a54c
Replace %v with %w for error
CreativeCactus Oct 1, 2020
0d28e29
bump golang versions in travis ci
Nov 6, 2020
5819000
bump golangci-lint version
Nov 6, 2020
e328a4e
fix linter errors
Nov 8, 2020
89b92b9
one more linter error fixed
Nov 8, 2020
be16a81
Add build tag to enable a successful build for zos
l-lindsay Nov 20, 2020
a752a62
Merge pull request #1206 from l-lindsay/zosbuild
dgsb Nov 21, 2020
e3e79b6
desactivate stale bot
Nov 24, 2020
6121f5c
Merge pull request #1207 from sirupsen/remove_stale_bot
dgsb Nov 24, 2020
8ae478e
Merge pull request #1197 from sirupsen/travis_build
dgsb Nov 26, 2020
4b818a5
migrate cross build target from bash script to mage
Nov 10, 2020
02fcb16
Remove dead panic in Entry.Panic
alecbz Dec 15, 2020
b02b418
migrate lint script to a mage target
Dec 17, 2020
44d983d
Merge pull request #1185 from CreativeCactus/patch-1
dgsb Dec 17, 2020
cd4bf4e
Merge pull request #1212 from alecbz/alec/remove-dead-panic
dgsb Dec 17, 2020
3986c92
add a test target in the magefile
Feb 13, 2021
c6da052
Merge pull request #1208 from sirupsen/magefile
dgsb Feb 13, 2021
6a61186
update travis scripts
Feb 13, 2021
003c63a
undo golang version bump
Feb 14, 2021
f513f99
Merge pull request #1228 from sirupsen/travis_upd
dgsb Feb 14, 2021
ac6e35b
fix for entry data field race condition
Feb 16, 2021
88d56b6
Merge pull request #1229 from sirupsen/fix-data-entry-race
dgsb Feb 16, 2021
67c117c
update changelog
Feb 16, 2021
15ca3c0
Merge pull request #1230 from sirupsen/new-release
dgsb Feb 16, 2021
5cb4bf6
code and comments clean up
Feb 16, 2021
35ab8d8
update changelog
Feb 16, 2021
d59e561
Merge pull request #1231 from sirupsen/dbd-cleanup
dgsb Feb 17, 2021
d172886
fix race condition AddHook and traces
Feb 17, 2021
6cff360
Merge pull request #1234 from sirupsen/dbd-cleanup
dgsb Feb 18, 2021
feebf74
travis: run mage with -v to not discard output
thaJeztah Feb 19, 2021
1d8091a
move "mage" to a separate module
thaJeztah Feb 19, 2021
f104497
Merge pull request #1238 from thaJeztah/move_mage
dgsb Feb 19, 2021
bdb7d4c
go.mod: update golang.org/x/sys to fix openbsd/mips64 on Go 1.16
thaJeztah Feb 19, 2021
cbd14ed
CI: use GitHub Actions
thaJeztah Feb 19, 2021
7a997b9
improve documentation about timestamp format
Mar 8, 2021
1bfef4b
update changelog
Mar 9, 2021
bdc0db8
Merge pull request #1244 from sirupsen/dbd-release
dgsb Mar 9, 2021
fe9e9fc
Merge pull request #1239 from thaJeztah/move_to_gha
dgsb Mar 9, 2021
9b555f4
go.mod: github.com/stretchr/testify v1.7.0
thaJeztah Mar 12, 2021
bde44a2
Merge pull request #1246 from thaJeztah/bump_testify
dgsb Mar 12, 2021
b1c1cea
Change godoc badge to pkg.go.dev badge
smoothprogrammer Mar 18, 2021
fdf1618
Merge pull request #1249 from injustease/docs/badge
dgsb Mar 18, 2021
1818363
Add support for the logger private buffer pool.
edoger Apr 20, 2021
b50299c
Merge pull request #1253 from edoger/buffer-pool
dgsb Apr 22, 2021
78f8389
fix race condition for SetFormatter and properly fix SetReportCaller …
rubensayshi Jun 16, 2021
f5f6a03
Update README.md
runphp Jun 24, 2021
15b98b1
ci: add go 1.17 to test matrix
anajavi Sep 2, 2021
dff9872
bump golang.org/x/sys depency version
Sep 11, 2021
de2d202
Merge pull request #1280 from sirupsen/bug-1275
dgsb Sep 11, 2021
b53d94c
Merge pull request #1266 from runphp/patch-1
dgsb Sep 11, 2021
526e535
indicates issues as stale automatically
dgsb Sep 11, 2021
22d63b7
Merge pull request #1281 from sirupsen/dbd-auto-stale-issues
dgsb Sep 11, 2021
0926db1
ci: run only on go 1.17
anajavi Sep 12, 2021
accc7da
Merge pull request #1277 from anajavi/patch-1
dgsb Sep 12, 2021
51f2599
reduce the list of cross build target
dgsb Sep 12, 2021
f25cd75
remove duplicated build constraints line
dgsb Sep 12, 2021
25e89b7
do not run the linter on windows
dgsb Sep 12, 2021
5418b6e
Merge pull request #1282 from sirupsen/dbd-ci-no-cross
dgsb Sep 12, 2021
5f8c666
Improve Log methods documentation
dgsb Sep 12, 2021
79c5ab6
Merge pull request #1283 from sirupsen/dbd-log-doc
dgsb Sep 12, 2021
85981c0
Merge pull request #1263 from rubensayshi/fix-race
sirupsen Jan 12, 2022
0db10ef
bump version of golang.org/x/sys dependency
nathanejohnson Jun 2, 2022
2b8f60a
bump version of golangci-lint
nathanejohnson Jun 2, 2022
f98ed3e
Merge pull request #1333 from nathanejohnson/bumpxsys
dgsb Jun 6, 2022
41b4ee6
update gopkg.in/yaml.v3 to v3.0.1
Jun 6, 2022
56c843c
Merge pull request #1337 from izhakmo/fix-cve
sirupsen Jun 13, 2022
d8787af
Use text when shows the logrus output
xieyuschen Jun 16, 2022
ebc9029
update dependencies
Jul 19, 2022
f8bf765
Merge pull request #1343 from sirupsen/dbd-upd-dep
dgsb Jul 19, 2022
ff07b25
Fix data race in hooks.test package
Dec 22, 2022
a448f82
Merge pull request #1362 from FrancoisWagner/fix-data-race-in-hooks-t…
sirupsen Jan 7, 2023
70234da
Add instructions to use different log levels for local and syslog
tommyblue Feb 17, 2023
766cfec
This commit fixes a potential denial of service vulnerability in logr…
ozfive Mar 10, 2023
e59b167
Merge pull request #1372 from tommyblue/syslog_different_loglevels
sirupsen Mar 12, 2023
c052ba6
Scan text in 64KB chunks
ozfive Mar 10, 2023
105e63f
Merge pull request #1 from ashmckenzie/ashmckenzie/fix-writer-scanner
ozfive May 4, 2023
6acd903
Merge pull request #1376 from ozfive/master
sirupsen May 15, 2023
b30aa27
Merge pull request #1339 from xieyuschen/patch-1
sirupsen May 15, 2023
352781d
Revert "Merge pull request #1376 from ozfive/master"
sirupsen May 17, 2023
f9291a5
Revert "Revert "Merge pull request #1376 from ozfive/master""
sirupsen May 21, 2023
d40e25c
fix panic in Writer
Luap99 May 17, 2023
d305b0f
Merge branch 'target' into master
kevinliu0430 Mar 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:

lint:
name: Golang-CI Lint
timeout-minutes: 10
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
# must be specified without patch version
version: v1.46
cross:
name: Cross
timeout-minutes: 10
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Cross
working-directory: ci
run: go run mage.go -v -w ../ crossBuild

test:
name: Unit test
timeout-minutes: 10
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -race -v ./...
22 changes: 22 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v3
with:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
logrus
vendor

.idea/
40 changes: 40 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
run:
# do not run on test files yet
tests: false

# all available settings of specific linters
linters-settings:
errcheck:
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: false

# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: false

lll:
line-length: 100
tab-width: 4

prealloc:
simple: false
range-loops: false
for-loops: false

whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature

linters:
enable:
- megacheck
- govet
disable:
- maligned
- prealloc
disable-all: false
presets:
- bugs
- unused
fast: false
61 changes: 12 additions & 49 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,15 @@
language: go
go_import_path: github.com/sirupsen/logrus
git:
depth: 1
env:
- GOMAXPROCS=4 GORACE=halt_on_error=1
matrix:
include:
- go: 1.10.x
install:
- go get github.com/stretchr/testify/assert
- go get golang.org/x/crypto/ssh/terminal
- go get golang.org/x/sys/unix
- go get golang.org/x/sys/windows
script:
- go test -race -v ./...
- go: 1.11.x
env: GO111MODULE=on
install:
- go mod download
script:
- go test -race -v ./...
- go: 1.11.x
env: GO111MODULE=off
install:
- go get github.com/stretchr/testify/assert
- go get golang.org/x/crypto/ssh/terminal
- go get golang.org/x/sys/unix
- go get golang.org/x/sys/windows
script:
- go test -race -v ./...
- go: 1.10.x
install:
- go get github.com/stretchr/testify/assert
- go get golang.org/x/crypto/ssh/terminal
- go get golang.org/x/sys/unix
- go get golang.org/x/sys/windows
script:
- go test -race -v -tags appengine ./...
- go: 1.11.x
env: GO111MODULE=on
install:
- go mod download
script:
- go test -race -v -tags appengine ./...
- go: 1.11.x
env: GO111MODULE=off
install:
- go get github.com/stretchr/testify/assert
- go get golang.org/x/crypto/ssh/terminal
- go get golang.org/x/sys/unix
- go get golang.org/x/sys/windows
script:
- go test -race -v -tags appengine ./...
- GO111MODULE=on
go: 1.15.x
os: linux
install:
- ./travis/install.sh
script:
- cd ci
- go run mage.go -v -w ../ crossBuild
- go run mage.go -v -w ../ lint
- go run mage.go -v -w ../ test
82 changes: 82 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,85 @@
# 1.8.1
Code quality:
* move magefile in its own subdir/submodule to remove magefile dependency on logrus consumer
* improve timestamp format documentation

Fixes:
* fix race condition on logger hooks


# 1.8.0

Correct versioning number replacing v1.7.1.

# 1.7.1

Beware this release has introduced a new public API and its semver is therefore incorrect.

Code quality:
* use go 1.15 in travis
* use magefile as task runner

Fixes:
* small fixes about new go 1.13 error formatting system
* Fix for long time race condiction with mutating data hooks

Features:
* build support for zos

# 1.7.0
Fixes:
* the dependency toward a windows terminal library has been removed

Features:
* a new buffer pool management API has been added
* a set of `<LogLevel>Fn()` functions have been added

# 1.6.0
Fixes:
* end of line cleanup
* revert the entry concurrency bug fix whic leads to deadlock under some circumstances
* update dependency on go-windows-terminal-sequences to fix a crash with go 1.14

Features:
* add an option to the `TextFormatter` to completely disable fields quoting

# 1.5.0
Code quality:
* add golangci linter run on travis

Fixes:
* add mutex for hooks concurrent access on `Entry` data
* caller function field for go1.14
* fix build issue for gopherjs target

Feature:
* add an hooks/writer sub-package whose goal is to split output on different stream depending on the trace level
* add a `DisableHTMLEscape` option in the `JSONFormatter`
* add `ForceQuote` and `PadLevelText` options in the `TextFormatter`

# 1.4.2
* Fixes build break for plan9, nacl, solaris
# 1.4.1
This new release introduces:
* Enhance TextFormatter to not print caller information when they are empty (#944)
* Remove dependency on golang.org/x/crypto (#932, #943)

Fixes:
* Fix Entry.WithContext method to return a copy of the initial entry (#941)

# 1.4.0
This new release introduces:
* Add `DeferExitHandler`, similar to `RegisterExitHandler` but prepending the handler to the list of handlers (semantically like `defer`) (#848).
* Add `CallerPrettyfier` to `JSONFormatter` and `TextFormatter` (#909, #911)
* Add `Entry.WithContext()` and `Entry.Context`, to set a context on entries to be used e.g. in hooks (#919).

Fixes:
* Fix wrong method calls `Logger.Print` and `Logger.Warningln` (#893).
* Update `Entry.Logf` to not do string formatting unless the log level is enabled (#903)
* Fix infinite recursion on unknown `Level.String()` (#907)
* Fix race condition in `getCaller` (#916).


# 1.3.0
This new release introduces:
* Log, Logf, Logln functions for Logger and Entry that take a Level
Expand Down
Loading
Loading