Register logs.

@return void
353229
protected function registerLogs()
    {
        $this->app->singleton('logs', function($app)
        {
            $config = $this->app->config->get('logs');

            if ($config['adapter'] == 'loggly') {

                return new Adapters\Loggly();

            } elseif ($config['adapter'] == 'stackdriver') {

                return new Adapters\Stackdriver();

            } else {

                return new Adapters\Monolog();

            }
            
        });
    }
137919
protected function registerLog()
    {
        $this->app->singleton('jlourenco.log', function ($app) {
            $config = $app['config']->get('jlourenco.base');

            $model = array_get($config, 'models.Logs');

            return new LogRepository($model);
        });
    }
879428
protected function registerLogFilename()
    {
        $handlers = $this->app->make('log')->getMonolog()->getHandlers();
        foreach ($handlers as $handler) {
            if (!$handler instanceof RotatingFileHandler) {
                continue;
            }
            $filename = (php_sapi_name() === 'cli') ? 'laravel-cli' : 'laravel';
            $handler->setFilenameFormat($filename . '-{date}', 'Y-m-d');
        }

        return;
    }
275642
public function registerLogger()
    {
        $this->app->extend('log', function($log) {
            return new Writer($log->getMonolog(), $log->getEventDispatcher());
        });
    }
639039
public function register()
    {
        $this->registerLockdownConfiguration();
        $this->registerLockdownFacade();
        $this->registerUserProvider();
        $this->registerRoleProvider();
        $this->registerPermissionProvider();
        $this->registerLockdown();
        $this->registerLockdownGuard();
        $this->registerCommands();
    }
223474
public function register()
    {
        $this->registerExecutor();
        $this->registerProfileBuilder();
        $this->registerProfileRegistry();
        $this->registerMysqlDumpSource();
        $this->registerBackup();
    }
140407
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'litecms.page');

        $this->app->bind('page', function ($app) {
            return $this->app->make('Litecms\Page\Page');
        });

        $this->app->bind(
            'Litecms\Page\Interfaces\PageRepositoryInterface',
            \Litecms\Page\Repositories\Eloquent\PageRepository::class
        );

        $this->app->register(\Litecms\Page\Providers\AuthServiceProvider::class);
        $this->app->register(\Litecms\Page\Providers\EventServiceProvider::class);
        $this->app->register(\Litecms\Page\Providers\RouteServiceProvider::class);
    }
1207813
public function register()
    {
        if ($this->isLumen() && !$this->app->has('filesystem')) {
            $this->app->singleton('filesystem', function ($app) {
                /** @var \Laravel\Lumen\Application $app */
                return $app->loadComponent(
                    'filesystems',
                    \Illuminate\Filesystem\FilesystemServiceProvider::class,
                    'filesystem'
                );
            });

            $this->app->singleton(
                \Illuminate\Contracts\Filesystem\Factory::class,
                function ($app) {
                    return new \Illuminate\Filesystem\FilesystemManager($app);
                }
            );
        }

        $this->registerFacades();
    }
1313353
public function addLog(Log $log)
    {
        $log->setInstance($this);
        $this->getLogs()->add($log);
    }
875826
public static function register()
    {
        if (!in_array(self::FILTERNAME, stream_get_filters(), true)) {
            stream_filter_register(self::FILTERNAME, self::class);
        }
    }
369749
public function register()
    {
        $this->prepareResources();
        $this->registerGroups();
        $this->registerUsers();
        $this->registerSettings();
        $this->registerLog();
        $this->registerVisits();
        $this->registerJobs();
        $this->registerBase();
        $this->registerToAppConfig();
        $this->registerMiddleware();
    }
176140
public function register() {
        $this->loadConfiguration();

        /** Register language repository . */
        $this->app->bind('lang-db-repo', function() {
            return new LanguageRepository(
                new Language()
            );
        });

        /** Register translations repository . */
        $this->app->bind('translations-db-repo', function() {
            return new TranslationsRepository(
                new Translation()
            );
        });

        /** Register driver manager */
        $this->app->bind('driver-translator-manager', function() {
            return (new Manager(
                config('laravel-translator')
            ));
        });

        /** Register translator . */
        $this->app->singleton('laravel-translator', function($app) {
            return new Translator(
                config('laravel-translator'),
                $app['driver-translator-manager']
            );
        });
    }
804318
public function register()
    {
        parent::register();

        $this->registerConfig();

        $this->registerLogViewer();
        $this->registerAliases();

        $this->registerProviders([
            Providers\UtilitiesServiceProvider::class,
            Providers\RouteServiceProvider::class,
        ]);
        $this->registerConsoleServiceProvider(Providers\CommandsServiceProvider::class);
    }
1133186
protected function addLogging()
    {
        $this->register(
            new MonologServiceProvider(),
            array(
                'monolog.name'      => 'phpDocumentor',
                'monolog.logfile'   => sys_get_temp_dir() . '/phpdoc.log',
                'monolog.debugfile' => sys_get_temp_dir() . '/phpdoc.debug.log',
                'monolog.level'     => Logger::INFO,
            )
        );

        $app = $this;
        /** @var Configuration $configuration */
        $configuration = $this['config'];
        $this['monolog.configure'] = $this->protect(
            function ($log) use ($app, $configuration) {
                $paths    = $configuration->getLogging()->getPaths();
                $logLevel = $configuration->getLogging()->getLevel();

                $app->configureLogger($log, $logLevel, $paths['default'], $paths['errors']);
            }
        );

        $this->extend(
            'console',
            function (ConsoleApplication $console) use ($configuration) {
                $console->getHelperSet()->set(new LoggerHelper());
                $console->getHelperSet()->set(new ConfigurationHelper($configuration));

                return $console;
            }
        );

        ErrorHandler::register($this['monolog']);
    }
779406
public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../config/services.php', 'services');

        $this->registerProviders();

        $this->app->bind('hclog', function () {
            return new HCLog;
        });

        // register artisan commands
        $this->commands($this->commands);

        $this->registerHelpers();
    }
1322632
public function register(): void
    {
        parent::register();

        /** @var Dispatcher $events */
        $events = $this->app['events'];

        $events->listen(MessageReceived::class, HandleConversation::class);
    }
1139084
public function register()
    {
        $this->registerEvents();

        $this->registerFiles();

        $this->registerConfigs();

        $this->registerEncrypter();

        $this->registerDiscover();
    }