Skip to content

cedricziel/l5-appengine-mvm-loghandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

l5-appengine-mvm-loghandler

Dependency Status

Google AppEngine Managed VMs LogHandler.

Instructions

Require the package with composer:

composer require cedricziel/l5-appengine-mvm-loghandler

Bind the ConfigureLogging class to the custom implementation in bootstrap/app.php:

$app->singleton(
    Illuminate\Foundation\Bootstrap\ConfigureLogging::class,
    CedricZiel\AppEngineMvmLoghandler\LoggingConfiguration::class
);

Replace the stock ConfigureLogging bootstrapper with a the custom implementation, by overriding the bootstrapers field in app/Http/Kernel.php:

    /**
     * The bootstrap classes for the application.
     *
     * @var array
     */
    protected $bootstrappers = [
        'Illuminate\Foundation\Bootstrap\DetectEnvironment',
        'Illuminate\Foundation\Bootstrap\LoadConfiguration',
        // replace ConfigureLogging
        'CedricZiel\AppEngineMvmLoghandler\LoggingConfiguration',
        'Illuminate\Foundation\Bootstrap\HandleExceptions',
        'Illuminate\Foundation\Bootstrap\RegisterFacades',
        'Illuminate\Foundation\Bootstrap\RegisterProviders',
        'Illuminate\Foundation\Bootstrap\BootProviders',
    ];

Aaaand in app/Console/Kernel.php:

    /**
     * The bootstrap classes for the application.
     *
     * @var array
     */
    protected $bootstrappers = [
        'Illuminate\Foundation\Bootstrap\DetectEnvironment',
        'Illuminate\Foundation\Bootstrap\LoadConfiguration',
        'CedricZiel\AppEngineMvmLoghandler\LoggingConfiguration',
        'Illuminate\Foundation\Bootstrap\HandleExceptions',
        'Illuminate\Foundation\Bootstrap\RegisterFacades',
        'Illuminate\Foundation\Bootstrap\SetRequestForConsole',
        'Illuminate\Foundation\Bootstrap\RegisterProviders',
        'Illuminate\Foundation\Bootstrap\BootProviders',
    ];

Use the log-handler in .env:

APP_LOG=appenginemvm

License

The MIT license

About

Google AppEngine Managed VMs LogHandler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages