Skip to content

why server`s log is showing in Eclipse Console, Although i have already written the log to file? #767

Description

@smallsharp

Description

i use the code

File folder = new File("log");
folder.mkdir();
File logFile = new File(folder, UDID +System.currentTimeMillis()+ ".log");
localService = AppiumDriverLocalService.buildService(new AppiumServiceBuilder()
.withLogFile(logFile)

and i found the logFile in the workspace ~/log/xxx.log

my question is :
why the Eclipse Conlsole shows it again? like follows

[RemoteTestNG] detected TestNG version 6.11.0
2017-11-15 10:32:12:981 - [Appium] Welcome to Appium v1.7.1
2017-11-15 10:32:12:984 - [Appium] Non-default server args:
2017-11-15 10:32:12:984 - [Appium] address: 127.0.0.1
2017-11-15 10:32:12:985 - [Appium] sessionOverride: true
2017-11-15 10:32:12:985 - [Appium] log: D:\workspace\EclipseStation\Appium\log\LE67A063101439501510741928005.log
2017-11-15 10:32:12:985 - [Appium] logTimestamp: true
2017-11-15 10:32:12:985 - [Appium] defaultCapabilities: {
2017-11-15 10:32:12:986 - [Appium] udid: LE67A06310143950
2017-11-15 10:32:12:986 - [Appium] }
2017-11-15 10:32:12:987 - [Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
2017-11-15 10:32:12:989 - [Appium] udid: 'LE67A06310143950'
2017-11-15 10:32:13:043 - [Appium] Appium REST http interface listener started on 127.0.0.1:4723
2017-11-15 10:32:13:540 - [HTTP] --> GET /wd/hub/status {}
2017-11-15 10:32:13:543 - [debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
2017-11-15 10:32:13:587 - [debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.7.1","revision":null}}
[2017-11-15 18:32:13] [INFO] AppiumServer is started with 127.0.0.1 4723 LE67A06310143950
2017-11-15 10:32:13:593 - [HTTP] <-- GET /wd/hub/status 200 49 ms - 83 

Environment

  • java client build version or git revision if you use some shapshot: 5.0.4
  • Appium server version or git revision if you use some shapshot: 1.7.1
  • Desktop OS/version used to run Appium if necessary:
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: 6.11.0
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: real device

Details

if u needs more

Code To Reproduce Issue [ Good To Have ]

Ecxeption stacktraces

Link to Appium logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions