diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs
index bb2869b5..d8e6cb2a 100644
--- a/websocket-sharp/WebSocket.cs
+++ b/websocket-sharp/WebSocket.cs
@@ -537,8 +537,18 @@ namespace WebSocketSharp
///
/// A that provides the logging function.
///
+ ///
+ /// The get operation is not available if the interface is not for
+ /// the client.
+ ///
public Logger Log {
get {
+ if (!_isClient) {
+ var msg = "The get operation is not available.";
+
+ throw new InvalidOperationException (msg);
+ }
+
return _log;
}