Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1631

The Mongoid logger output is not pretty

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None

      While the AR has been enjoying a colored logger for quite a long time, the Mongoid logger is still quite boring

      I have developed the following hack for this: https://gist.github.com/1509933
      It colorizes the MONGODB with an alternating color, the collection in blue and the method with yellow.

      I can put this functionality into Mongoid::Logger and send a pull request, if you're willing to include this feature.
      BTW, why is "warn" handled as a special case? Are there loggers which don't support :warn ?

            Assignee:
            Unassigned Unassigned
            Reporter:
            romanbsd Roman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: