Get the Log class out of com.threerings. That's too general a package to be
sticking classes into.
This commit is contained in:
@@ -13,7 +13,7 @@ import com.google.common.collect.Maps;
|
|||||||
|
|
||||||
import com.samskivert.util.Tuple;
|
import com.samskivert.util.Tuple;
|
||||||
|
|
||||||
import static com.threerings.Log.log;
|
import static com.threerings.servlet.util.Log.log;
|
||||||
|
|
||||||
public class FlashVarBuilder
|
public class FlashVarBuilder
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// ooo-util - a place for OOO utilities
|
||||||
|
// Copyright (C) 2011 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
// http://github.com/threerings/ooo-util/blob/master/LICENSE
|
||||||
|
|
||||||
|
package com.threerings.servlet.util;
|
||||||
|
|
||||||
|
import com.samskivert.util.Logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains a reference to the log object used by this package.
|
||||||
|
*/
|
||||||
|
public class Log
|
||||||
|
{
|
||||||
|
/** We dispatch our log messages through this logger. */
|
||||||
|
public static Logger log = Logger.getLogger("ooo-servlet-util");
|
||||||
|
}
|
||||||
@@ -3,12 +3,12 @@
|
|||||||
// Copyright (C) 2011 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2011 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://github.com/threerings/ooo-util/blob/master/LICENSE
|
// http://github.com/threerings/ooo-util/blob/master/LICENSE
|
||||||
|
|
||||||
package com.threerings;
|
package com.threerings.util;
|
||||||
|
|
||||||
import com.samskivert.util.Logger;
|
import com.samskivert.util.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains a reference to the log object used by this library.
|
* Contains a reference to the log object used by this package.
|
||||||
*/
|
*/
|
||||||
public class Log
|
public class Log
|
||||||
{
|
{
|
||||||
@@ -14,7 +14,7 @@ import java.util.ResourceBundle;
|
|||||||
import com.samskivert.text.MessageUtil;
|
import com.samskivert.text.MessageUtil;
|
||||||
import com.samskivert.util.StringUtil;
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import static com.threerings.Log.log;
|
import static com.threerings.util.Log.log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A message bundle provides an easy mechanism by which to obtain translated message strings from
|
* A message bundle provides an easy mechanism by which to obtain translated message strings from
|
||||||
@@ -240,7 +240,8 @@ public class MessageBundle
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (reportMissing) {
|
if (reportMissing) {
|
||||||
log.warning("Missing translation message", "bundle", _path, "key", key, new Exception());
|
log.warning("Missing translation message",
|
||||||
|
"bundle", _path, "key", key, new Exception());
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import com.google.common.collect.Maps;
|
|||||||
|
|
||||||
import com.samskivert.util.StringUtil;
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import static com.threerings.Log.log;
|
import static com.threerings.util.Log.log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The message manager provides a thin wrapper around Java's built-in localization support,
|
* The message manager provides a thin wrapper around Java's built-in localization support,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import com.google.common.collect.Maps;
|
|||||||
|
|
||||||
import com.samskivert.util.StringUtil;
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import static com.threerings.Log.log;
|
import static com.threerings.util.Log.log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Records the times that it takes to call methods. Allows one simultaneous method call per thread
|
* Records the times that it takes to call methods. Allows one simultaneous method call per thread
|
||||||
|
|||||||
Reference in New Issue
Block a user