Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odakyuToiletSignage
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kddi
odakyuToiletSignage
Commits
4ccd46c3
Commit
4ccd46c3
authored
Dec 28, 2017
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ログ出力なし
USBからファイル取得時の例外処理のエラーステータス変更
parent
608f075b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
app/src/main/java/jp/odakyu/toiletsignage/activity/MainActivity.java
+1
-1
app/src/main/java/jp/odakyu/toiletsignage/application/ToiletApplication.java
+5
-5
app/src/main/java/jp/odakyu/toiletsignage/log/Logger.java
+6
-6
No files found.
app/src/main/java/jp/odakyu/toiletsignage/activity/MainActivity.java
View file @
4ccd46c3
...
...
@@ -74,7 +74,7 @@ public class MainActivity extends ParentActivity {
application
.
startTimer
();
}
catch
(
Exception
e
)
{
mMessageTextView
.
setText
(
getString
(
R
.
string
.
initDisplayStringError
,
ToiletInfo
.
VALUE_DEFAULT_TOILET_
NUL
L
));
mMessageTextView
.
setText
(
getString
(
R
.
string
.
initDisplayStringError
,
ToiletInfo
.
VALUE_DEFAULT_TOILET_
VALIDATION_FAI
L
));
Logger
.
e
(
TAG
,
e
.
getLocalizedMessage
(),
e
);
}
}
...
...
app/src/main/java/jp/odakyu/toiletsignage/application/ToiletApplication.java
View file @
4ccd46c3
...
...
@@ -27,11 +27,11 @@ public class ToiletApplication extends Application {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
Logger
logger
=
new
Logger
();
File
downloadFilePath
=
Environment
.
getExternalStoragePublicDirectory
(
Environment
.
DIRECTORY_DOWNLOADS
);
String
logPath
=
downloadFilePath
.
getPath
()
+
"/"
+
APP_LOG_PATH
;
logger
.
setLogPathFormat
(
logPath
);
FileUtil
.
createParentDirectory
(
logPath
);
//
Logger logger = new Logger();
//
File downloadFilePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
//
String logPath = downloadFilePath.getPath() + "/" + APP_LOG_PATH;
//
logger.setLogPathFormat(logPath);
//
FileUtil.createParentDirectory(logPath);
Logger
.
i
(
TAG
,
"onCreate"
);
}
...
...
app/src/main/java/jp/odakyu/toiletsignage/log/Logger.java
View file @
4ccd46c3
...
...
@@ -282,27 +282,27 @@ public class Logger extends AbstractLogger {
}
private
static
boolean
isLoggable
(
int
level
)
{
return
tru
e
;
return
fals
e
;
}
public
static
boolean
isVerboseEnabled
()
{
return
tru
e
;
return
fals
e
;
}
public
static
boolean
isDebugEnabled
()
{
return
tru
e
;
return
fals
e
;
}
public
static
boolean
isInfoEnabled
()
{
return
tru
e
;
return
fals
e
;
}
public
static
boolean
isWarnEnabled
()
{
return
tru
e
;
return
fals
e
;
}
public
static
boolean
isErrorEnabled
()
{
return
tru
e
;
return
fals
e
;
}
}
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