Menu

#1734 Add timestamp to log

future
open-fixed
log (1)
5
2024-10-30
2023-12-28
No

The log does not include timestamps for actions.
It should, for debugging purposes.

Discussion

  • Hiroshi Miura

    Hiroshi Miura - 2024-01-11

    As you know , when debugging, you can edit logger.properties (github.com) to customize log messages.

    in default

    org.omegat.util.logging.OmegaTLogFormatter.mask=$mark: $level: $text $key
    #org.omegat.util.logging.OmegaTLogFormatter.mask=$time: $threadName [$level] $key $text
    
    #org.omegat.util.logging.OmegaTLogFormatter.timeFormat=HH:mm:ss,SSSS
    

    You can edit uncomment a sample such as

    #org.omegat.util.logging.OmegaTLogFormatter.mask=$mark: $level: $text $key
    org.omegat.util.logging.OmegaTLogFormatter.mask=$time: $threadName [$level] $key $text
    
    org.omegat.util.logging.OmegaTLogFormatter.timeFormat=HH:mm:ss,SSSS
    

    OmegaT can launched with customized properties when you put your logger.properties file in your users .omegat/ folder or adding a java property -Djava.util.logging.file=foo/boo/logger.properties.

     

    Last edit: Hiroshi Miura 2024-01-11
    • Jean-Christophe Helary

      No. I don't know that.

      I don't think that's documented in the manual.

      And I think the default should have a time stamp instead of an arbitrary number that does not seem to mean anything.

       
  • Hiroshi Miura

    Hiroshi Miura - 2024-07-08
    • assigned_to: Hiroshi Miura
     
  • Hiroshi Miura

    Hiroshi Miura - 2024-10-30
    • status: open --> open-fixed
     

Log in to post a comment.

Auth0 Logo