Commit dc2a48fd authored by Matt Tucker's avatar Matt Tucker Committed by matt

Applying Log changes from Jive Forums -- adds ability to rotate, mark, etc.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@72 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0dac604f
This diff is collapsed.
......@@ -462,12 +462,11 @@ public class Logger {
* Get a copy of log targets for this logger.
*
* @return the child loggers
* @deprecated This method is deprecated and will be removed in Future version.
* Previously it allowed unsafe access to logtargets which permitted
* masqurade attacks. It currently returns a zero sized array.
*/
public LogTarget[] getLogTargets() {
return new LogTarget[0];
// Jive change - we ignore the deprecated warning above and just return the log targets
// since it's a closed system for us anyways
return m_logTargets;
}
/**
......
......@@ -44,7 +44,7 @@ public class RotatingFileTarget extends FileTarget {
getInitialFile();
}
protected synchronized void rotate()
public synchronized void rotate()
throws IOException {
close();
......@@ -56,7 +56,7 @@ public class RotatingFileTarget extends FileTarget {
/**
* Output the log message, and check if rotation is needed.
*/
protected synchronized void write(final String data) {
public synchronized void write(final String data) {
// send the log message
super.write(data);
......@@ -87,5 +87,4 @@ public class RotatingFileTarget extends FileTarget {
openFile();
}
}
}
\ No newline at end of file
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