mongolog.setlevel(3) php man page | unix.com

Man Page: mongolog.setlevel

Operating Environment: php

Section: 3

MONGOLOG.SETLEVEL(3)							 1						      MONGOLOG.SETLEVEL(3)

MongoLog::setLevel - Sets logging level

SYNOPSIS
publicstatic void MongoLog::setLevel (int $level)
DESCRIPTION
This function can be used to set how verbose logging should be and the types of activities that should be logged. Use the constants described in the MongoLog section with bitwise operators to specify levels. <?php // first, turning on logging for a module MongoLog::setModule(MongoLog::POOL); // log messages of every level MongoLog::setLevel(MongoLog::ALL); // log warnings and info MongoLog::setLevel(MongoLog::WARNING|MongoLog::INFO); // log everything except fine activity MongoLog::setLevel(MongoLog::ALL & (~MongoLog::FINE)); ?> Note that you must also call MongoLog.setModule(3) to choose what part of the driver to log.
PARAMETERS
o $level - The levels you would like to log. PHP Documentation Group MONGOLOG.SETLEVEL(3)
Related Man Pages
sasl_log_t(3sasl) - opensolaris
eurephia-auth(7) - debian
mojo::log(3pm) - debian
log(5) - redhat
log(1m) - redhat
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
UNIX.COM 2017 Year End Summary
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!