Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update MVCSBundle.as with a logLevel property #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/robotlegs/bender/bundles/mvcs/MVCSBundle.as
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,21 @@ package robotlegs.bender.bundles.mvcs
* For that Classic Robotlegs flavour
*
* <p>This bundle installs a number of extensions commonly used
* in typical Robotlegs applications and modules.</p>
* in typical Robotlegs applications and modules. It will also set the logLevel for the context
* to its onw logLevel property (LogLevel.DEBUG by default)</p>
*/
public class MVCSBundle implements IBundle
{

/*============================================================================*/
/* Public Properties */
/*============================================================================*/

/**
* The logLevel the bundle will set for the context (LogLevel.DEBUG by default)
*/
public var logLevel:int = LogLevel.DEBUG;

/*============================================================================*/
/* Public Functions */
/*============================================================================*/
Expand All @@ -45,7 +55,7 @@ package robotlegs.bender.bundles.mvcs
*/
public function extend(context:IContext):void
{
context.logLevel = LogLevel.DEBUG;
context.logLevel = logLevel;

context.install(
TraceLoggingExtension,
Expand Down