Commit f81c28be authored by Christian Schudt's avatar Christian Schudt

Replace deprecated org.jivesoftware.util.Log with org.slf4j.Logger

parent f40088a0
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
package org.jivesoftware.admin; package org.jivesoftware.admin;
import org.jivesoftware.util.Log;
import org.jivesoftware.openfire.ldap.LdapManager; import org.jivesoftware.openfire.ldap.LdapManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.naming.NamingEnumeration; import javax.naming.NamingEnumeration;
import javax.naming.directory.Attribute; import javax.naming.directory.Attribute;
...@@ -42,6 +43,8 @@ import java.util.Collection; ...@@ -42,6 +43,8 @@ import java.util.Collection;
*/ */
public class LdapGroupTester { public class LdapGroupTester {
private static final Logger Log = LoggerFactory.getLogger(LdapGroupTester.class);
private LdapManager manager; private LdapManager manager;
public LdapGroupTester(LdapManager manager) { public LdapGroupTester(LdapManager manager) {
......
...@@ -25,8 +25,9 @@ import org.dom4j.io.OutputFormat; ...@@ -25,8 +25,9 @@ import org.dom4j.io.OutputFormat;
import org.jivesoftware.openfire.ldap.LdapManager; import org.jivesoftware.openfire.ldap.LdapManager;
import org.jivesoftware.openfire.ldap.LdapVCardProvider; import org.jivesoftware.openfire.ldap.LdapVCardProvider;
import org.jivesoftware.util.JiveGlobals; import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.XMLWriter; import org.jivesoftware.util.XMLWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException; import java.io.IOException;
import java.io.StringWriter; import java.io.StringWriter;
...@@ -40,6 +41,8 @@ import java.util.Iterator; ...@@ -40,6 +41,8 @@ import java.util.Iterator;
*/ */
public class LdapUserProfile { public class LdapUserProfile {
private static final Logger Log = LoggerFactory.getLogger(LdapUserProfile.class);
private String name = ""; private String name = "";
private String email = ""; private String email = "";
private String fullName = ""; private String fullName = "";
......
...@@ -20,9 +20,10 @@ ...@@ -20,9 +20,10 @@
package org.jivesoftware.admin; package org.jivesoftware.admin;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.Base64; import org.jivesoftware.util.Base64;
import org.jivesoftware.openfire.ldap.LdapManager; import org.jivesoftware.openfire.ldap.LdapManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xmpp.packet.JID; import org.xmpp.packet.JID;
import javax.naming.NamingEnumeration; import javax.naming.NamingEnumeration;
...@@ -42,6 +43,8 @@ import java.util.*; ...@@ -42,6 +43,8 @@ import java.util.*;
*/ */
public class LdapUserTester { public class LdapUserTester {
private static final Logger Log = LoggerFactory.getLogger(LdapUserTester.class);
/** /**
* Constants to access user properties * Constants to access user properties
*/ */
......
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
package org.jivesoftware.database; package org.jivesoftware.database;
import org.jivesoftware.util.JiveGlobals; import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.Log; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement;
import java.sql.DriverManager; import java.sql.DriverManager;
import java.util.Properties; import java.util.Properties;
...@@ -42,6 +42,8 @@ import java.util.Properties; ...@@ -42,6 +42,8 @@ import java.util.Properties;
*/ */
public class EmbeddedConnectionProvider implements ConnectionProvider { public class EmbeddedConnectionProvider implements ConnectionProvider {
private static final Logger Log = LoggerFactory.getLogger(EmbeddedConnectionProvider.class);
private Properties settings; private Properties settings;
private String serverURL; private String serverURL;
private String driver = "org.hsqldb.jdbcDriver"; private String driver = "org.hsqldb.jdbcDriver";
......
...@@ -22,6 +22,8 @@ package org.jivesoftware.openfire.http; ...@@ -22,6 +22,8 @@ package org.jivesoftware.openfire.http;
import org.jivesoftware.util.*; import org.jivesoftware.util.*;
import org.jivesoftware.util.cache.Cache; import org.jivesoftware.util.cache.Cache;
import org.jivesoftware.util.cache.CacheFactory; import org.jivesoftware.util.cache.CacheFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
...@@ -38,7 +40,10 @@ import java.io.*; ...@@ -38,7 +40,10 @@ import java.io.*;
* Combines and serves resources, such as javascript or css files. * Combines and serves resources, such as javascript or css files.
*/ */
public class ResourceServlet extends HttpServlet { public class ResourceServlet extends HttpServlet {
// private static String suffix = ""; // Set to "_src" to use source version
private static final Logger Log = LoggerFactory.getLogger(ResourceServlet.class);
// private static String suffix = ""; // Set to "_src" to use source version
private static long expiresOffset = 3600 * 24 * 10; // 10 days util client cache expires private static long expiresOffset = 3600 * 24 * 10; // 10 days util client cache expires
private boolean debug = false; private boolean debug = false;
private boolean disableCompression = false; private boolean disableCompression = false;
......
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
package org.jivesoftware.openfire.starter; package org.jivesoftware.openfire.starter;
import org.jivesoftware.util.Log; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File; import java.io.File;
/** /**
...@@ -46,6 +47,8 @@ import java.io.File; ...@@ -46,6 +47,8 @@ import java.io.File;
*/ */
public class ServerStarter { public class ServerStarter {
private static final Logger Log = LoggerFactory.getLogger(ServerStarter.class);
/** /**
* Default to this location if one has not been specified * Default to this location if one has not been specified
*/ */
......
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