Skip to content

SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: monolog_entries.http_server #13

Description

@bodnar1212

When logger called in Symfony Command don't cached logs in db.
Need to set this params:

        $entryTable = $this->schema->createTable($this->tableName);
        $entryTable->addColumn('id', 'integer', array('unsigned' => true, 'autoincrement' => true));
        $entryTable->addColumn('channel', 'string', array('length' => 255, 'notnull' => true));
        $entryTable->addColumn('level', 'integer', array('notnull' => true));
        $entryTable->addColumn('level_name', 'string', array('length' => 255, 'notnull' => true));
        $entryTable->addColumn('message', 'text', array('notnull' => true));
        $entryTable->addColumn('datetime', 'datetime', array('notnull' => true));
        $entryTable->addColumn('context', 'text', array('notnull' => true));
        $entryTable->addColumn('extra', 'text', array('notnull' => true));
        $entryTable->addColumn('http_server', 'text', array('notnull' => false));
        $entryTable->addColumn('http_post', 'text', array('notnull' => false));
        $entryTable->addColumn('http_get', 'text', array('notnull' => false));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions