Index: base/src/port/port.tcl
===================================================================
--- base/src/port/port.tcl	(revision 80969)
+++ base/src/port/port.tcl	(working copy)
@@ -3695,6 +3695,28 @@
                     }
                 }
 
+                logpath {
+                    set logpath [file join [macports::getportlogpath $portdir $portname]]
+                    if {[file isdirectory $logpath]} {
+                        puts $logpath
+                    } else {
+                        ui_error "Log file path not found for port in $portdir"
+                    }
+                }
+
+                openlogpath {
+                    set logpath [file join [macports::getportlogpath $portdir $portname]]
+                    if {[file isdirectory $logpath]} {
+                        if {[catch {system "${macports::autoconf::open_path} '$logpath'"} result]} {
+                            global errorInfo
+                            ui_debug "$errorInfo"
+                            break_softcontinue "unable to open path using ${macports::autoconf::open_path}: $result" 1 status
+                        }
+                    } else {
+                        ui_error "Log file path not found for port in $portdir"
+                    }
+                }
+
                 gohome {
                     set homepage ""
 
@@ -3946,6 +3968,8 @@
     url         [list action_portcmds       [ACTION_ARGS_PORTS]] \
     file        [list action_portcmds       [ACTION_ARGS_PORTS]] \
     logfile     [list action_portcmds       [ACTION_ARGS_PORTS]] \
+    logpath     [list action_portcmds       [ACTION_ARGS_PORTS]] \
+    openlogpath [list action_portcmds       [ACTION_ARGS_PORTS]] \
     gohome      [list action_portcmds       [ACTION_ARGS_PORTS]] \
     \
     fetch       [list action_target         [ACTION_ARGS_PORTS]] \
