mirror of
https://github.com/apache/jclouds.git
synced 2025-02-08 11:06:05 +00:00
Added trace logging to the Spring configs.
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2595 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
bf272b3df0
commit
dea9a75c66
@ -0,0 +1,38 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.com>
|
||||||
|
*
|
||||||
|
* ====================================================================
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ====================================================================
|
||||||
|
*/
|
||||||
|
package org.jclouds.demo.tweetstore.config;
|
||||||
|
|
||||||
|
import org.jclouds.logging.Logger;
|
||||||
|
import org.jclouds.logging.Logger.LoggerFactory;
|
||||||
|
import org.jclouds.logging.jdk.JDKLogger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Spring config that provides a logger.
|
||||||
|
*
|
||||||
|
* @author Andrew Phillips
|
||||||
|
*/
|
||||||
|
abstract class LoggingConfig {
|
||||||
|
private static final LoggerFactory FACTORY = new JDKLogger.JDKLoggerFactory();
|
||||||
|
protected final Logger logger;
|
||||||
|
|
||||||
|
protected LoggingConfig() {
|
||||||
|
logger = FACTORY.getLogger(this.getClass().getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user