summaryrefslogtreecommitdiffstats
path: root/theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java
diff options
context:
space:
mode:
authordenisanisimov <denis@vaadin.com>2014-01-29 11:05:04 +0200
committerdenisanisimov <denis@vaadin.com>2014-02-04 14:23:48 +0200
commita52b0ba902781e5daeffa4f9bc2e48f35eea2c35 (patch)
tree5276d4892d872b775c3429d798ab9703b3acc43b /theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java
parent1583ba7c2a5ca0f4eff55aa5e6d2072e3583cceb (diff)
downloadvaadin-framework-a52b0ba902781e5daeffa4f9bc2e48f35eea2c35.tar.gz
vaadin-framework-a52b0ba902781e5daeffa4f9bc2e48f35eea2c35.zip
Use Logger instead of System.out and System.err (#10328).
Change-Id: Icf53bdb80caf7a6989b90cf5ce83dd328d3e73dd
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java')
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java b/theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java
index ed6b98f5ac..63f59cdfab 100644
--- a/theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java
+++ b/theme-compiler/src/com/vaadin/sass/internal/ScssStylesheet.java
@@ -24,11 +24,13 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.logging.LogManager;
import java.util.logging.Logger;
import org.w3c.css.sac.CSSException;
import org.w3c.css.sac.InputSource;
+import com.vaadin.buildhelpers.CompileTheme;
import com.vaadin.sass.internal.handler.SCSSDocumentHandler;
import com.vaadin.sass.internal.handler.SCSSDocumentHandlerImpl;
import com.vaadin.sass.internal.handler.SCSSErrorHandler;
@@ -457,4 +459,19 @@ public class ScssStylesheet extends Node {
public void setCharset(String charset) {
this.charset = charset;
}
+
+ static {
+ String logFile = System.getProperty("java.util.logging.config.file");
+ if (logFile == null) {
+ try {
+ LogManager.getLogManager().readConfiguration(
+ CompileTheme.class
+ .getResourceAsStream("/logging.properties"));
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}