1 /*
2  * Created on Oct 13, 2008
3  * Created by Paul Gardner
4  *
5  * Copyright (C) Azureus Software, Inc, All Rights Reserved.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  */
19 
20 
21 package com.aelitis.azureus.core.speedmanager.impl.v2;
22 
23 import com.aelitis.azureus.core.speedmanager.impl.SpeedManagerAlgorithmProviderAdapter;
24 
25 public class
26 SpeedManagerLogger
27 {
28 	private static String									prefix;
29 	private static SpeedManagerAlgorithmProviderAdapter		adapter;
30 
31 	protected static void
setAdapter( String _prefix, SpeedManagerAlgorithmProviderAdapter _adapter )32 	setAdapter(
33 		String										_prefix,
34 		SpeedManagerAlgorithmProviderAdapter		_adapter )
35 	{
36 		prefix	= _prefix;
37 		adapter = _adapter;
38 	}
39 
40 	public static void
log( String str )41 	log(
42 		String	str )
43 	{
44 		if ( adapter != null ){
45 
46 			adapter.log( prefix + ": " + str );
47 		}
48 	}
49 
50 	public static void
trace( String str )51 	trace(
52 		String	str )
53 	{
54 	}
55 }
56