Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
ed7d7b40
Commit
ed7d7b40
authored
Jan 21, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split file cleanup
parent
41d80ba1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
loggers.go
logger/loggers.go
+0
-13
logsystem.go
logger/logsystem.go
+8
-0
sys.go
logger/sys.go
+5
-0
No files found.
logger/loggers.go
View file @
ed7d7b40
...
...
@@ -17,19 +17,6 @@ import (
"os"
)
// LogSystem is implemented by log output devices.
// All methods can be called concurrently from multiple goroutines.
type
LogSystem
interface
{
GetLogLevel
()
LogLevel
SetLogLevel
(
i
LogLevel
)
LogPrint
(
LogLevel
,
string
)
}
type
message
struct
{
level
LogLevel
msg
string
}
type
LogLevel
uint32
const
(
...
...
logger/logsystem.go
View file @
ed7d7b40
...
...
@@ -6,6 +6,14 @@ import (
"sync/atomic"
)
// LogSystem is implemented by log output devices.
// All methods can be called concurrently from multiple goroutines.
type
LogSystem
interface
{
GetLogLevel
()
LogLevel
SetLogLevel
(
i
LogLevel
)
LogPrint
(
LogLevel
,
string
)
}
// NewStdLogSystem creates a LogSystem that prints to the given writer.
// The flag values are defined package log.
func
NewStdLogSystem
(
writer
io
.
Writer
,
flags
int
,
level
LogLevel
)
LogSystem
{
...
...
logger/sys.go
View file @
ed7d7b40
...
...
@@ -4,6 +4,11 @@ import (
"sync"
)
type
message
struct
{
level
LogLevel
msg
string
}
var
(
logMessageC
=
make
(
chan
message
)
addSystemC
=
make
(
chan
LogSystem
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment