Your pom is broken, you are using 3 distinct versions of akka and 2
versions of scala.
Set akka to 2.4.1 (or 2.4.2-CR1) and scala to 2.11
On Tuesday, February 2, 2016 at 11:35:09 AM UTC, Augusto Vinicius wrote:
>
> Hello everybody!
>
> Its my first time using Akka and logging with Maven, and i can't see the
> logs. Anyone can help me?
>
> I configured my project like this:
>
> *application.conf*
>
> akka
> {
>
> loggers = ["akka.event.slf4j.Slf4jLogger"]
>
> loglevel = "DEBUG"
>
> stdout-loglevel = "DEBUG"
>
> logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
>
> log-dead-letters= 10
>
> actor
> {
> provider = "akka.remote.RemoteActorRefProvider"
>
> debug
> {
> receive = off
> autoreceive = off
> lifecycle = off
> }
> }
> remote
> {
> enabled-transports = ["akka.remote.netty.tcp"]
> log-sent-messages = off
> log-received-messages = off
> netty.tcp
> {
> hostname = "localhost"
> port = 2111
> }
> }
> }
>
> *pom.xml*
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>com.akka.test</groupId>
> <artifactId>FirstAkkaProject</artifactId>
> <version>1.0-SNAPSHOT</version>
>
>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.8</source>
> <target>1.8</target>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
> <dependencies>
> <dependency>
> <groupId>com.typesafe.akka</groupId>
> <artifactId>akka-actor_2.10</artifactId>
> <version>2.3.14</version>
> </dependency>
>
> <dependency>
> <groupId>com.typesafe.akka</groupId>
> <artifactId>akka-cluster_2.11</artifactId>
> <version>2.4.1</version>
> </dependency>
>
> <dependency>
> <groupId>com.typesafe.akka</groupId>
> <artifactId>akka-cluster-tools_2.11</artifactId>
> <version>2.4.1</version>
> </dependency>
>
> <dependency>
> <groupId>com.typesafe.akka</groupId>
> <artifactId>akka-remote_2.11</artifactId>
> <version>2.4.0</version>
> </dependency>
>
> <dependency>
> <groupId>com.typesafe.akka</groupId>
> <artifactId>akka-slf4j_2.10</artifactId>
> <version>2.3.14</version>
> </dependency>
>
> <dependency>
> <groupId>ch.qos.logback</groupId>
> <artifactId>logback-classic</artifactId>
> <version>1.1.3</version>
> </dependency>
>
> <dependency>
> <groupId>ch.qos.logback</groupId>
> <artifactId>logback-core</artifactId>
> <version>1.1.3</version>
> </dependency>
>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.12</version>
> </dependency>
>
> </dependencies>
>
> </project>
>
> *logback.xml*
>
> <configuration>
> <appender name="FILE" class="ch.qos.logback.core.FileAppender">
> <!-- "application-name" is a variable -->
> <File>c:/logfolder/first.log</File>
> <layout class="ch.qos.logback.classic.PatternLayout">
> <Pattern>%d %p %t %c - %m%n</Pattern>
> </layout>
> </appender>
>
> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
> <encoder>
> <pattern>%date{ISO8601} %-5level %logger{36} %X{sourceThread} -
> %msg%n</pattern>
> </encoder>
> </appender>
>
> <root level="debug">
> <appender-ref ref="FILE"/>
> <appender-ref ref="STDOUT" />
> </root>
> </configuration>
>
>
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.