Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
45832d6f
authored
Jul 15, 2019
by
patpat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加log工具类
parent
3b01dcc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
app/src/main/java/com/bgycc/smartcanteen/util/LogUtil.java
+32
-0
No files found.
app/src/main/java/com/bgycc/smartcanteen/util/LogUtil.java
0 → 100644
View file @
45832d6f
package
com
.
bgycc
.
smartcanteen
.
util
;
import
android.util.Log
;
public
class
LogUtil
{
private
static
boolean
sEnable
=
false
;
public
static
void
setEnable
(
boolean
enable
)
{
sEnable
=
enable
;
}
public
static
void
i
(
String
tag
,
String
log
)
{
if
(!
sEnable
)
return
;
Log
.
i
(
tag
,
log
);
}
public
static
void
d
(
String
tag
,
String
log
)
{
if
(!
sEnable
)
return
;
Log
.
d
(
tag
,
log
);
}
public
static
void
w
(
String
tag
,
String
log
)
{
if
(!
sEnable
)
return
;
Log
.
w
(
tag
,
log
);
}
public
static
void
e
(
String
tag
,
String
log
)
{
if
(!
sEnable
)
return
;
Log
.
e
(
tag
,
log
);
}
}
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