emas_tlog 0.0.2 copy "emas_tlog: ^0.0.2" to clipboard
emas_tlog: ^0.0.2 copied to clipboard

ali emas tlog

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:emas_tlog/emas_tlog.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
    EmasTlog.init("", "", "",
      "", "",
        "",
        );
  }

  @override
  Widget build(BuildContext context) {

    EmasTlog.log(ApmLogType.I, "tag2_1231231I",module: "hehe2_flutterI",tag: "tag_hehe2");
    EmasTlog.log(ApmLogType.V, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2");
    EmasTlog.log(ApmLogType.W, "tag2_1231231W",module: "hehe2_flutterW",tag: "tag_hehe2");
    EmasTlog.log(ApmLogType.E, "tag2_1231231E",module: "hehe2_flutterE",tag: "tag_hehe2");
    EmasTlog.log(ApmLogType.D, "tag2_1231231D",module: "hehe2_flutterD",tag: "tag_hehe2");
    EmasTlog.log(ApmLogType.I, "tag2_1231231I",module: "hehe2_flutterI",tag: "tag_hehe2");
    // EmasTlog.comment(); // 上ζŠ₯
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
2
likes
110
pub points
0%
popularity

Publisher

unverified uploader

ali emas tlog

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on emas_tlog