[ 
https://issues.apache.org/jira/browse/LOG4J2-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17291509#comment-17291509
 ] 

Mykola Holovach commented on LOG4J2-3027:
-----------------------------------------

I found solution, just need to add additional plugin to pom.xml
{code:java}
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </plugin>
{code}

> TcpSocketServer in latest log4j2 version (2.14.0)
> -------------------------------------------------
>
>                 Key: LOG4J2-3027
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3027
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Appenders
>    Affects Versions: 2.14.0
>         Environment: maven
> tomcat
> java 8
>            Reporter: Mykola Holovach
>            Priority: Blocker
>         Attachments: log4j-server-2.14.0.jar, logfinal-log4j.xml
>
>
> Hi, i'm successfully used TcpSocketServer for appending my logs on remote 
> server using log4j2 2.8.2 version by the command bellow, now i need to move 
> to the latest version 2.14.0 but there no TcpSocketServer, could you help me 
> to explain how to up and use something like TcpSocketServer on the newest 
> version? Thanks in advance!
> {code:java}
> java -server -cp log4j-core-2.8.2.jar:log4j-api-2.8.2.jar:jcommander-1.48.jar 
> org.apache.logging.log4j.core.net.server.TcpSocketServer -p 1101 -c 
> logfinal-log4j.xml --classes java.util.ArrayList
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to