Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actor name does not appear in logs #94

Open
vasily-kirichenko opened this issue Feb 16, 2018 · 1 comment
Open

Actor name does not appear in logs #94

vasily-kirichenko opened this issue Feb 16, 2018 · 1 comment

Comments

@vasily-kirichenko
Copy link
Contributor

module ServerList

let props =
    props(
        let rec loop (ctx: Actor<Msg>) = function
            | Tick ->
                    logInfo ctx "Getting server list..."
...

It's spawned by another actor:

let props () : Props =
        Props.props(
            ...
            
            fun (ctx: Actor<obj>) ->
                spawn ctx "server-list" ServerList.props |> ignore
                ...
        ).ToProps()

After that I expect that the logs should contain "server-list" as an appender name, but they don't:

12:18:43 INFO  [0, Culture=neutral, PublicKeyToken=null]], 19] Getting server list... 

It make reading logs very hard.

@snakefoot
Copy link

snakefoot commented May 17, 2018

@vasily-kirichenko Try updating to latest Akka.Logger.NLog 1.3.1: https://www.nuget.org/packages/Akka.Logger.NLog/

It should improve the logger-names for NLog. Alternative use ${event-properties:item=logSource:whenEmpty=${logger}} instead of just ${logger}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants