Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
ea75c0f9
Commit
ea75c0f9
authored
Jan 15, 2013
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to Log.java to disable logs
parent
1ac1a481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Log.java
java/src/org/linphone/mediastream/Log.java
+5
-2
No files found.
java/src/org/linphone/mediastream/Log.java
View file @
ea75c0f9
...
...
@@ -32,14 +32,16 @@ public final class Log {
public
static
String
TAG
=
"Linphone"
;
private
static
final
boolean
useIsLoggable
=
false
;
private
static
boolean
isLogEnabled
=
true
;
public
Log
(
String
tag
)
{
public
Log
(
String
tag
,
boolean
enable
)
{
TAG
=
tag
;
isLogEnabled
=
enable
;
}
@SuppressWarnings
(
value
=
"all"
)
private
static
boolean
isLoggable
(
int
level
)
{
return
!
useIsLoggable
||
android
.
util
.
Log
.
isLoggable
(
TAG
,
level
);
return
isLogEnabled
&&
(!
useIsLoggable
||
android
.
util
.
Log
.
isLoggable
(
TAG
,
level
)
);
}
public
static
void
i
(
Object
...
objects
)
{
...
...
@@ -113,3 +115,4 @@ public final class Log {
return
sb
.
toString
();
}
}
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