Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
ff4884c2
Commit
ff4884c2
authored
6 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Patches
Plain Diff
Updated Logger to master
parent
dde816c0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!23
Devbranch to Master
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gopkg.lock
+15
-5
Gopkg.lock
loggermdl/loggerdefault.go
+7
-0
loggermdl/loggerdefault.go
loggermdl/loggerdefault_test.go
+4
-2
loggermdl/loggerdefault_test.go
with
26 additions
and
7 deletions
Gopkg.lock
+
15
−
5
View file @
ff4884c2
...
...
@@ -7,6 +7,12 @@
packages = ["."]
revision = "95ec53f28296f47af86a81eb73f0d7fe2b23a322"
[[projects]]
name = "github.com/antlr/antlr4"
packages = ["runtime/Go/antlr"]
revision = "bdc05c87be2ad981744223df0fd745e8345baba9"
version = "4.7.1"
[[projects]]
branch = "master"
name = "github.com/bluele/gcache"
...
...
@@ -14,10 +20,14 @@
revision = "472614239ac7e5bc6461e237c798a6ebd5aff8c1"
[[projects]]
name = "github.com/bndr/gotabulate"
packages = ["."]
revision = "94ff52dbe671866d4f5cd3463ecdad8ec550e578"
version = "v1.1.2"
branch = "master"
name = "github.com/caibirdme/yql"
packages = [
".",
"internal/grammar",
"internal/stack"
]
revision = "315dfc5afc87108d37551bc86fb5ffa8fc5d4b51"
[[projects]]
name = "github.com/davecgh/go-spew"
...
...
@@ -142,6 +152,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "
a6a69847e64f89f67a4290038f3b59016baf50e2061b30cbc87e43af5096e115
"
inputs-digest = "
f827f9a5941a155c350f478743d55496318bffa114ba37c8501c894be1bce3dc
"
solver-name = "gps-cdcl"
solver-version = 1
This diff is collapsed.
Click to expand it.
loggermdl/loggerdefault.go
+
7
−
0
View file @
ff4884c2
...
...
@@ -105,6 +105,13 @@ func LogHREnd() {
fmt
.
Println
(
"<<<<<<<<<<<<<<<<<<<<<<<"
)
}
// LogSpot will print block
func
LogSpot
(
args
...
interface
{})
{
fmt
.
Println
(
">>>>>>>>>>STRT>>>>>>>>>>>>>"
)
log
.
Info
(
""
,
args
)
fmt
.
Println
(
"<<<<<<<<<END<<<<<<<<<<<<<<"
)
}
// LogVars Prints variables with formatting
func
LogVars
(
xvars
...
interface
{})
{
for
_
,
i
:=
range
xvars
{
...
...
This diff is collapsed.
Click to expand it.
loggermdl/loggerdefault_test.go
+
4
−
2
View file @
ff4884c2
...
...
@@ -106,9 +106,9 @@ func ExampleLogHRStart() {
func
ExampleGetCaller
()
{
errormdl
.
IsTestingNegetiveCaseOn
=
true
errormdl
.
IsTestingNegetiveCaseOn
CheckBool
=
true
GetCallers
(
0
)
errormdl
.
IsTestingNegetiveCaseOn
=
false
errormdl
.
IsTestingNegetiveCaseOn
CheckBool
=
false
a
:=
GetCallers
(
0
)
fmt
.
Println
(
len
(
a
))
//output:
...
...
@@ -130,6 +130,8 @@ func ExampleInit() {
func
TestLogPanic
(
t
*
testing
.
T
)
{
assert
.
Panics
(
t
,
func
()
{
LogPanic
(
"a"
)
},
"The code did not panic"
)
assert
.
NotPanics
(
t
,
func
()
{
LogSpot
(
"A"
)
},
"The code did not panic"
)
}
// func TestLogTable(t *testing.T) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets