Skip to content

Log plugin does not work on hooks, only on moves #1228

@gabrielecastellano

Description

@gabrielecastellano

Hello everyone!

I use the ctx.log object to show a game log client-side. It works fine for moves, as I can add metadata before the move ends.

However, what if I want to log something outside of a move? Let's say, on some event? For instance, I have a 'onBegin' method in one of my phases, and I want to log something from that method. The ctx.log object is visible there, but If I try to append any metadata there, nothing arrives client-side as that happens outside of a move.

However, the event itself (without any metadata) has its own entry in the log client-side.

Am I doing anything wrong or this is a known limitation? Any way to work around this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions