Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-wowa-training
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
java-wowa-training
Commits
6acb0f75
Commit
6acb0f75
authored
6 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Change ConsoleHandler to StreamHandler
parent
feac5008
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/be/cylab/java/wowa/training/Example.java
+3
-2
3 additions, 2 deletions
src/main/java/be/cylab/java/wowa/training/Example.java
with
3 additions
and
2 deletions
src/main/java/be/cylab/java/wowa/training/Example.java
+
3
−
2
View file @
6acb0f75
...
@@ -2,9 +2,10 @@ package be.cylab.java.wowa.training;
...
@@ -2,9 +2,10 @@ package be.cylab.java.wowa.training;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.List
;
import
java.util.logging.ConsoleHandler
;
import
java.util.logging.Level
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
java.util.logging.Logger
;
import
java.util.logging.SimpleFormatter
;
import
java.util.logging.StreamHandler
;
/**
/**
* @author CYLAB
* @author CYLAB
...
@@ -24,7 +25,7 @@ public final class Example {
...
@@ -24,7 +25,7 @@ public final class Example {
public
static
void
main
(
final
String
[]
args
)
throws
IOException
{
public
static
void
main
(
final
String
[]
args
)
throws
IOException
{
Logger
logger
=
Logger
.
getLogger
(
Trainer
.
class
.
getName
());
Logger
logger
=
Logger
.
getLogger
(
Trainer
.
class
.
getName
());
logger
.
setLevel
(
Level
.
INFO
);
logger
.
setLevel
(
Level
.
INFO
);
Console
Handler
handler
=
new
ConsoleHandl
er
();
Stream
Handler
handler
=
new
StreamHandler
(
System
.
out
,
new
SimpleFormatt
er
()
)
;
logger
.
addHandler
(
handler
);
logger
.
addHandler
(
handler
);
TrainerParameters
parameters
=
new
TrainerParameters
(
TrainerParameters
parameters
=
new
TrainerParameters
(
logger
,
100
,
60
,
10
,
TrainerParameters
.
SELECTION_METHOD_RWS
,
logger
,
100
,
60
,
10
,
TrainerParameters
.
SELECTION_METHOD_RWS
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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