Loggable constructor

const Loggable()

Interface for objects that can be passed directly to Logger.send.

If toJson is implemented, it can be passed directly.

The type becomes the name of the log as it is, and Map converted by toJson becomes a parameter.

Logger.sendに直接渡すことのできるオブジェクト用のインターフェース。

toJsonを実装していれば直接渡すことができます。

型がそのままログの名前となりtoJsonで変換されたMapがパラメーターとなります。

Implementation

const Loggable();