How to set client machine name using the silverlight 2 logging module?

Dec 12, 2008 at 9:10 AM

If I use the silverlight 2 logging moodule, the MachineName field of the LogEntryData instnace is always null. Code location: SilverlightLogging assembly Orpius.Logging namespace, Log class, method:

void WriteLogEntryAux(LogLevel logLevel, string message, Exception exception, Dictionary<string, object> properties)
    ExceptionMemento memento = null;

    if (exception != null)
        memento = CreateMemento(exception);



    LogEntryData entry = new LogEntryData
        LogLevel = logLevel,
        Message = message,
        ExceptionMemento = memento,
        CodeLocation = GetLocation(),
        LogName = Name,
        ThreadName =
        ManagedThreadId =
        Url = pageUri.ToString(),
        OccuredAt =
        Properties = properties,

new LogEventArgs(entry));

    ClientInfo info = new ClientInfo();
    info.LogName = entry.LogName;
    info.MachineName = entry.MachineName;
    info.Url = entry.Url;
    info.UserName = entry.UserName;


I know that in Silverlight2 Environment.MachineName is missing, however the web application on server side could get the client machine name, calling user and so on...
Please note that entry.UserName is also always null. Am I missing something?

Dec 20, 2008 at 11:14 AM
Hi Rolf,

I'm working on a new version, and will try and address the issues you raised. If you find any more please place them in the issue tracker.
I'm sorry for the delay in responding to you.

Thanks for you message.