Re: Remote Logging

2017-12-21 Thread Remko Popma
You can also check out and build that module yourself. The repository is here: 
https://github.com/apache/logging-log4j-tools

 It is ready for release, there are no outstanding tickets on that module. 

(Shameless plug) Every java main() method deserves http://picocli.info

> On Dec 12, 2017, at 13:22, Abhinav Rana  wrote:
> 
> Hi,
> 
> So for the latest version of Log4j2(2.10) is there no way to do remote 
> logging  ?
> I need to wait for the release ?
> 
> Thank You
> Abhinav Rana
> 
> 
>> On 12/11/2017 3:53 PM, Apache wrote:
>> The server is now in a separate git project. While it is usable it was 
>> really meant to be a sample that users could use to start from to build 
>> their own server. We will be publishing a release soon.
>> 
>> Ralph
>> 
>>> On Dec 11, 2017, at 1:13 AM, Abhinav Rana  wrote:
>>> 
>>> Hello,
>>> 
>>> So i have this task to log activities to a file, but it has to be done 
>>> remotely on the server side, Remote logging.
>>> I found out that before log4j 2.6 to listen to a port we used 
>>> TcpSocketServer which started a server using LogEventBridge
>>> * This class was in core.net.server which is no longer available
>>> * Assuming it is not used anymore and the only similar/closest 
>>> class, TcpSocketManager
>>> 
>>> My task was simple
>>> 1. Send logging info to a port.
>>> 2. Log info from port to a file.
>>> 
>>> Socket appender configuration
>>> 
>>> appender.socket.type = Socket
>>> appender.socket.name= Socket_Appender
>>> appender.socket.host = "IP address"
>>> appender.socket.port = 8101
>>> appender.socket.layout.type = SerializedLayout
>>> appender.socket.connectTimeoutMillis = 2000
>>> appender.socket.reconnectionDelayMillis = 1000
>>> appender.socket.protocol = TCP
>>> 
>>> Then i tried this
>>> 
>>> /*public static final Logger LOG = 
>>> LogManager.getLogger(myapp.class.getName());*/
>>> and got the following error
>>> /**//*main ERROR TcpSocketManager (TCP:IPAddress:8111) caught exception and 
>>> will continue: java.net.SocketTimeoutException: connect timed out
>>> */
>>> I need help how to go ahead.
>>> 
>>> Thank You
>>> Abhinav Rana
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
>> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 


Re: Remote Logging

2017-12-11 Thread Abhinav Rana

Hi,

So for the latest version of Log4j2(2.10) is there no way to do remote 
logging  ?

I need to wait for the release ?

Thank You
Abhinav Rana


On 12/11/2017 3:53 PM, Apache wrote:

The server is now in a separate git project. While it is usable it was really 
meant to be a sample that users could use to start from to build their own 
server. We will be publishing a release soon.

Ralph


On Dec 11, 2017, at 1:13 AM, Abhinav Rana  wrote:

Hello,

So i have this task to log activities to a file, but it has to be done remotely 
on the server side, Remote logging.
I found out that before log4j 2.6 to listen to a port we used TcpSocketServer 
which started a server using LogEventBridge
 * This class was in core.net.server which is no longer available
 * Assuming it is not used anymore and the only similar/closest class, 
TcpSocketManager

My task was simple
1. Send logging info to a port.
2. Log info from port to a file.

Socket appender configuration

appender.socket.type = Socket
appender.socket.name= Socket_Appender
appender.socket.host = "IP address"
appender.socket.port = 8101
appender.socket.layout.type = SerializedLayout
appender.socket.connectTimeoutMillis = 2000
appender.socket.reconnectionDelayMillis = 1000
appender.socket.protocol = TCP

Then i tried this

/*public static final Logger LOG = 
LogManager.getLogger(myapp.class.getName());*/
and got the following error
/**//*main ERROR TcpSocketManager (TCP:IPAddress:8111) caught exception and 
will continue: java.net.SocketTimeoutException: connect timed out
*/
I need help how to go ahead.

Thank You
Abhinav Rana









-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org




-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Remote Logging

2017-12-11 Thread Apache
The server is now in a separate git project. While it is usable it was really 
meant to be a sample that users could use to start from to build their own 
server. We will be publishing a release soon.

Ralph

> On Dec 11, 2017, at 1:13 AM, Abhinav Rana  wrote:
> 
> Hello,
> 
> So i have this task to log activities to a file, but it has to be done 
> remotely on the server side, Remote logging.
> I found out that before log4j 2.6 to listen to a port we used TcpSocketServer 
> which started a server using LogEventBridge
> * This class was in core.net.server which is no longer available
> * Assuming it is not used anymore and the only similar/closest class, 
> TcpSocketManager
> 
> My task was simple
> 1. Send logging info to a port.
> 2. Log info from port to a file.
> 
> Socket appender configuration
> 
> appender.socket.type = Socket
> appender.socket.name= Socket_Appender
> appender.socket.host = "IP address"
> appender.socket.port = 8101
> appender.socket.layout.type = SerializedLayout
> appender.socket.connectTimeoutMillis = 2000
> appender.socket.reconnectionDelayMillis = 1000
> appender.socket.protocol = TCP
> 
> Then i tried this
> 
> /*public static final Logger LOG = 
> LogManager.getLogger(myapp.class.getName());*/
> and got the following error
> /**//*main ERROR TcpSocketManager (TCP:IPAddress:8111) caught exception and 
> will continue: java.net.SocketTimeoutException: connect timed out
> */
> I need help how to go ahead.
> 
> Thank You
> Abhinav Rana
> 
> 
> 
> 
> 
> 



-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Remote logging

2006-12-27 Thread Maarten Bosteels

Package for remote logging:

http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/package-summary.html

check out the socketAppender or the SyslogAppender:

http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SocketAppender.html
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SyslogAppender.html



On 12/27/06, Uziel, Avi [EMAIL PROTECTED] wrote:


All,

Is there a way to capture log messages on a remote machine?
I have an application that uses log4j, I would like to replace the
logger so it will send the messages to a remote machine.

Thanks,
Avi




Re: Remote logging

2006-12-27 Thread Takács Bence
Don't forget to set LocationInfo=true both the client side and server 
side...



Maarten Bosteels wrote:

Package for remote logging:

http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/package-summary.html 



check out the socketAppender or the SyslogAppender:

http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SocketAppender.html 

http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SyslogAppender.html 





On 12/27/06, Uziel, Avi [EMAIL PROTECTED] wrote:


All,

Is there a way to capture log messages on a remote machine?
I have an application that uses log4j, I would like to replace the
logger so it will send the messages to a remote machine.

Thanks,
Avi







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Remote logging over HTTP

2004-06-10 Thread Ceki Gülcü
Thomas,
The attachments did not make it. Pelase try sending your message to log4j-dev.
At 12:28 PM 6/10/2004, Thomas Muller wrote:
Log4j freaks,
Just wanted to share a couple of classes I've coded for remote logging
over HTTP. I noticed that HTTPAppender used to be part of the API some
versions ago, but this one used a non-serialization tehcnique to
transfer the LoggingEvents.
The code is poorly documented but should be self-explanatory. I've used
ideas/code from org.apache.net's SocketAppender/SocketNode/SocketServer
without scruple.
Feel free to use/demolish/disregard.
Regards,
--
Thomas
--
Ceki Gülcü
 For log4j documentation consider The complete log4j manual
 ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]