Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
Returns a error log instance, which loggs into the error log
    

        def getErrorLogger():
    """ Returns a error log instance, which loggs into the error log
    """
    return getPublisherErrorLogger('ftw.publisher.sender')
        


src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/browser/views.py   ftw.publisher.sender(Download)
from datetime import datetime
from ftw.publisher.core import states
from ftw.publisher.sender import getLogger, getErrorLogger
from ftw.publisher.sender import message_factory as _
from ftw.publisher.sender.events import AfterPushEvent, QueueExecutedEvent
    def execute_single_job(self, job):
        """ Executes a single job without calling the view
        """
        self.logger = getLogger()
        self.error_logger = getErrorLogger()
        # prepare logger
        self.logger = getLogger()
        self.error_logger = getErrorLogger()
        # is it allowed to publish?
        if not self.config.publishing_enabled():