Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-224

LoggerLayoutPattern is not safe when used inside pthreads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.0
    • None
    • Code
    • None

    Description

      When you use LoggerLayoutPattern inside a pthread Threadable object because all of it's patterns are defined in the static variable $defaultConverterMap they are basically wiped out by pthreads. A simple workaround is to simply make a function that generates that map and then is replaced where the map is statically called.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arevak Andrew Revak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified