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