Hi Dmitry, I'm moving your question to a new thread.

On 15 February 2012 12:28, Dmitry Perlroizen <[email protected]> wrote:
> Hello log4php!
> Just a proposal, I hope it can be interesting...

We welcome proposals. :)

> I think it would be a good idea if socket appenders (or their layouts) would
> allow users to configure a name of an application hosting the appender.
> For example, socket receivers on the other side will be able to identify the
> source and structure the logging data accordingly.
> Often applications may span many hosts and its very convenient to know who
> is the transmitter.
> Otherwise the receiver doesn't have a clue who's talking on the other side.
> We do this in all java and .net appenders by adding a property, it looks
> just like an MDC property with some fixed name.
> It would be great to see this option in log4php.

What kind of layout do you use for the socket appender? If you use a
pattern layout, you structure the message so that it includes an ID,
prehaps by using MDC? XML layout also includes MDC data.

How do you have this configured in java and .net?

> I would gladly contribute to this, but my skills in php are rather modest,
> so may be it could be picked up by more profound developers.

That's ok. Thanks for your feedback.

Regards,
Ivan

Reply via email to