Github user zhuoliu commented on the pull request:

    https://github.com/apache/storm/pull/886#issuecomment-157761155
  
    Hi jessicasco, for the versions before workers-artifacts, the following 
code in util.clj might achieve what you want:
    ```
    (defn- logs-rootname [storm-id port]
      (str storm-id "-worker-" port))
    
    (defn logs-filename [storm-id port]
      (str (logs-rootname storm-id port) ".log"))
    
    (defn logs-metadata-filename [storm-id port]
      (str (logs-rootname storm-id port) ".yaml"))
    
    (def worker-log-filename-pattern #"^((.*-\d+-\d+)-worker-(\d+))\.log")
    
    (defn get-log-metadata-file
      ([fname]
        (if-let [[_ _ id port] (re-matches worker-log-filename-pattern fname)]
          (get-log-metadata-file id port)))
      ([id port]
        (clojure.java.io/file LOG-DIR "metadata" (logs-metadata-filename id 
port))))
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to