Commit 0f8f54fb authored by Gwenael Cattez's avatar Gwenael Cattez

Improve logging

parent 4659f7c8
......@@ -73,4 +73,17 @@ public class DigihomeParameter implements Serializable
{
this.value = value;
}
public String toString()
{
StringBuilder toStringBuilder = new StringBuilder();
toStringBuilder.append("[ "+this.getClass().getSimpleName()+"");
toStringBuilder.append("name : "+this.name);
toStringBuilder.append(" , ");
toStringBuilder.append("type : "+this.type);
toStringBuilder.append(" , ");
toStringBuilder.append("value : "+this.value);
toStringBuilder.append(" ]");
return toStringBuilder.toString();
}
}
......@@ -192,13 +192,17 @@ public class DigihomeContribution
}
else
{
File digihomeParametersFile = new File(digihomeContributionOutDir, DIGIHOME_PARAMETERS_FILE_NAME);
digihomeParametersFile.createNewFile();
FileOutputStream digihomeParametersFos = new FileOutputStream(digihomeParametersFile);
ObjectOutputStream digihomeParametersOos = new ObjectOutputStream(digihomeParametersFos);
digihomeParametersOos.writeObject(digihomeParameters);
digihomeParametersOos.close();
logger.info("DigihomeContribution "+digihomeParameters.size()+" DigihomeParameter(s) defined");
for(DigihomeParameter digihomeParameter : this.digihomeParameters)
{
logger.info("DigihomeContribution parameter : "+digihomeParameter.toString());
}
}
/** Create contribution zip file*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment