[ http://issues.apache.org/jira/browse/DIRMINA-300?page=all ]
Phan Thanh Hieu updated DIRMINA-300:
------------------------------------
Attachment: SessionLog.java
I have changed the SessionLog class:
--BEGIN--
private static Logger getLogger( IoSession session )
{
Logger log = ( Logger ) session.getAttribute( LOGGER );
if( log == null )
{
log = LoggerFactory.getLogger( getClass( session ) );
String prefix = ( String ) session.getAttribute( PREFIX );
if( prefix == null )
{
prefix = "[" + session.getLocalAddress()
+ session.getRemoteAddress() + "] ";
session.setAttribute( PREFIX, prefix );
}
session.setAttribute( LOGGER, log );
}
return log;
}
--END--
> Enhance log information when using sessionLog
> ---------------------------------------------
>
> Key: DIRMINA-300
> URL: http://issues.apache.org/jira/browse/DIRMINA-300
> Project: Directory MINA
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.0
> Reporter: Phan Thanh Hieu
> Priority: Minor
> Attachments: SessionLog.java
>
>
> SessionLog should provide the information about LocalAddress and
> RemoteAddress instead of only RemoteAddress as current. How do you guys think?
> I have modified the SessionLog util class attached in this issue.
> I have to develop the SessionLogUtil myseft due to i encountered a problem:
> MINA continues receiving the message when stop listening on Port.
> The kind of added information would help us to detect which port is still
> received the message.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira