tizen_log 0.1.1 copy "tizen_log: ^0.1.1" to clipboard
tizen_log: ^0.1.1 copied to clipboard

A Flutter plugin which provides the ability to use Tizen dlog logging service.

tizen_log #

pub package

A Flutter plugin which provides the ability to use Tizen dlog logging service.

Getting Started #

To use this package, add tizen_log as a dependency in your pubspec.yaml file.

dependencies:
  tizen_log: ^0.1.1

Simple logging #

const logTag = 'TEST';
Log.verbose(logTag, 'verbose message');
Log.debug(logTag, 'debug message');
Log.info(logTag, 'info message');
Log.warn(logTag, 'warn message');
Log.error(logTag, 'error message');
Log.fatal(logTag, 'fatal message');

Customizing logs #

To add file name, function name and line number to logs, use --dart-define=DEBUG_MODE=true flag:

$ flutter-tizen run --dart-define=DEBUG_MODE=true

To override file name, function name or line number in logs, use additional parameters in function calls:

const logTag = 'TEST';
Log.warn(logTag, 'warn message', file: 'main');
Log.error(logTag, 'error message', func: 'constructor');
Log.fatal(logTag, 'fatal message', line: 1111);
Log.fatal(logTag, 'fatal message', file: 'main', line: 1234);

Viewing logs #

To view logs use the following command:

$ sdb dlog TEST  # Replace TEST with your log tag.

Supported devices #

  • Galaxy Watch series (running Tizen 4.0 or later)
0
likes
150
pub points
39%
popularity

Publisher

verified publishertizen.org

A Flutter plugin which provides the ability to use Tizen dlog logging service.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi

More

Packages that depend on tizen_log