Code Monkey home page Code Monkey logo

logbundle's Introduction

LogBundle

Instalação

Adicione o LogBundle em seu composer.json:

{
    "require": {
        "zuni/log-bundle": "1.*@dev"
    }
}

Registre o bundle no AppKernel:

new Zuni\LogBundle\ZuniLogBundle(),

Para configurar crie um manager no doctrine para o bundle. o nome do manager obrigatoriamente tem que ser log (por enquanto) Vá em config (Arquivos importantes):

orm:
    auto_generate_proxy_classes: %kernel.debug%
    default_entity_manager:   default
    entity_managers:
        log:
            connection:       default
            mappings:
                ZuniLogBundle: ~

agora de um update schema no manager que você crio para o bundle e pronto todas as entidades serão logadas. Caso você não queira que determinada entidade não seje logada, basta adicionar uma annotation na mesma:

...

/**
 * 
 * @Loggable\NotLoggable
 * @ORM\Entity
 * @ORM\Table(name="my_class")
 */
class MyClass
{

...

logbundle's People

Contributors

renatozunitec avatar zunitec avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

deisezunino

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.